function _prev_next_modify in Previous/Next API 7.2
Same name and namespace in other branches
- 6 prev_next.module \_prev_next_modify()
- 7 prev_next.module \_prev_next_modify()
Module function to update the prev_next records.
Parameters
string $nid: The node id of the current node.
1 call to _prev_next_modify()
- prev_next_node_update in ./
prev_next.module - Implements hook_node_update().
File
- ./
prev_next.module, line 301 - 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_modify($nid) {
// Find out if any other nodes point to this node and update them
_prev_next_modify_pointing_nodes($nid);
// Then update this one
_prev_next_add($nid);
}