You are here

function _prev_next_remove in Previous/Next API 7

Same name and namespace in other branches
  1. 6 prev_next.module \_prev_next_remove()
  2. 7.2 prev_next.module \_prev_next_remove()

Delete from the prev_next records.

1 call to _prev_next_remove()
prev_next_node_delete in ./prev_next.module
Implements hook_node_delete().

File

./prev_next.module, line 501

Code

function _prev_next_remove($nid) {

  // Delete the data for this node
  db_delete('prev_next_node')
    ->condition('nid', $nid)
    ->execute();

  // Find out if any other nodes point to this node and update them
  _prev_next_modify_pointing_nodes($nid);
}