function _prev_next_remove in Previous/Next API 7.2
Same name and namespace in other branches
- 6 prev_next.module \_prev_next_remove()
- 7 prev_next.module \_prev_next_remove()
Module function to delete from the prev_next records.
Parameters
string $nid: The node id of the current node.
1 call to _prev_next_remove()
- prev_next_init in ./
prev_next.module - Implements hook_init().
File
- ./
prev_next.module, line 313 - The previous next module indexes the previous and next nodes based upon user-selectable criteria and stores this index in the database for faster retrieval later.
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);
}