function recipe_delete in Recipe 5
Same name and namespace in other branches
- 6 recipe.module \recipe_delete()
- 7.2 recipe.module \recipe_delete()
- 7 recipe.module \recipe_delete()
Implementation of hook_delete().
When a node is deleted, we need to clean up related tables.
File
- ./
recipe.module, line 106 - recipe.module - share recipes for drupal 5.x
Code
function recipe_delete($node) {
db_query("DELETE FROM {recipe} WHERE nid = %d", $node->nid);
db_query("DELETE FROM {recipe_node_ingredient} WHERE nid = %d", $node->nid);
}