function pmorganization_delete_node_index in Drupal PM (Project Management) 7.3
Same name and namespace in other branches
- 8 pmorganization/pmorganization.module \pmorganization_delete_node_index()
Deletes pmorganization index entries for a given node.
Parameters
object $node: The node object.
Related topics
3 calls to pmorganization_delete_node_index()
- pmorganization_node_delete in pmorganization/
pmorganization.module - Implements hook_node_delete().
- pmorganization_node_update in pmorganization/
pmorganization.module - Implements hook_node_update().
- pmorganization_update_7301 in pmorganization/
pmorganization.install - Build pmorganization_index for all nodes.
File
- pmorganization/
pmorganization.module, line 209 - Main module file for PM Organization.
Code
function pmorganization_delete_node_index($node) {
if (variable_get('pmorganization_maintain_index_table', TRUE)) {
db_delete('pmorganization_index')
->condition('nid', $node->nid)
->execute();
}
}