function recipe_delete in Recipe 7.2
Same name and namespace in other branches
- 5 recipe.module \recipe_delete()
- 6 recipe.module \recipe_delete()
- 7 recipe.module \recipe_delete()
Implements hook_delete().
When a node is deleted, delete the recipe and recipe node ingredient links. Leave the ingredients.
File
- ./
recipe.module, line 159 - Contains functions for Recipe node CRUD and display.
Code
function recipe_delete($node) {
db_query("DELETE FROM {recipe} WHERE nid = :nid", array(
':nid' => $node->nid,
));
}