You are here

function pmproject_delete_node_index in Drupal PM (Project Management) 8

Same name and namespace in other branches
  1. 7.3 pmproject/pmproject.module \pmproject_delete_node_index()

Deletes pmproject index entries for a given node.

Parameters

object $node: The node object.

Related topics

3 calls to pmproject_delete_node_index()
pmproject_node_delete in pmproject/pmproject.module
Implements hook_node_delete().
pmproject_node_update in pmproject/pmproject.module
Implements hook_node_update().
pmproject_update_7301 in pmproject/pmproject.install
Build pmproject_index for all nodes.

File

pmproject/pmproject.module, line 305
Main module file for the PM Project module.

Code

function pmproject_delete_node_index($node) {
  if (variable_get('pmproject_maintain_index_table', TRUE)) {
    db_delete('pmproject_index')
      ->condition('nid', $node->nid)
      ->execute();
  }
}