You are here

function pmorganization_delete_node_index in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 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 203
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();
  }
}