You are here

function recipe_node_insert in Recipe 7

Same name and namespace in other branches
  1. 7.2 recipe.module \recipe_node_insert()

Implements hook_node_insert().

This enables the ingredient node feature. If there is an ingredient with the same name as a node type ingredient, link them.

File

./recipe.module, line 218
Contains functions for Recipe node CRUD and display.

Code

function recipe_node_insert($node) {
  if ($node->type == 'ingredient') {
    recipe_node_update($node);
  }
}