function recipe_node_insert in Recipe 7.2
Same name and namespace in other branches
- 7 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 142 - Contains functions for Recipe node CRUD and display.
Code
function recipe_node_insert($node) {
if ($node->type == 'ingredient') {
recipe_node_update($node);
}
}