function _prev_next_modify_pointing_nodes in Previous/Next API 6
Same name and namespace in other branches
- 7.2 prev_next.module \_prev_next_modify_pointing_nodes()
- 7 prev_next.module \_prev_next_modify_pointing_nodes()
Update other nodes pointing to a particular node
2 calls to _prev_next_modify_pointing_nodes()
- _prev_next_modify in ./
prev_next.module - Update the prev_next records.
- _prev_next_remove in ./
prev_next.module - Delete from the prev_next records.
File
- ./
prev_next.module, line 480
Code
function _prev_next_modify_pointing_nodes($nid) {
// First for previous
$result = db_query("SELECT nid FROM {prev_next_node} WHERE prev_nid = %d", $nid);
while ($prev_row = db_fetch_object($result)) {
_prev_next_add($prev_row->nid);
}
// Then for next
$result = db_query("SELECT nid FROM {prev_next_node} WHERE next_nid = %d", $nid);
while ($next_row = db_fetch_object($result)) {
_prev_next_add($next_row->nid);
}
}