function prev_next_node_update in Previous/Next API 7.2
Same name and namespace in other branches
- 7 prev_next.module \prev_next_node_update()
Implements hook_node_update().
File
- ./
prev_next.module, line 357 - 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_node_update($node) {
$types = _prev_next_node_types();
if (in_array($node->type, $types)) {
_prev_next_modify($node->nid);
}
}