function pmproject_node_delete in Drupal PM (Project Management) 8
Same name and namespace in other branches
- 7.3 pmproject/pmproject.module \pmproject_node_delete()
Implements hook_node_delete().
Related topics
File
- pmproject/
pmproject.module, line 289 - Main module file for the PM Project module.
Code
function pmproject_node_delete($node) {
// Clean up the {pmproject_index} table when nodes are deleted.
pmproject_delete_node_index($node);
if (variable_get('pmproject_maintain_index_table', TRUE) and $node->type = 'pmproject') {
// Clean up the {pmproject_index} table when pmproject are deleted.
db_delete('pmproject_index')
->condition('pmproject_nid', $node->nid)
->execute();
}
}