function prev_next_nodeapi in Previous/Next API 6
Implementation of hook_nodeapi().
File
- ./
prev_next.module, line 493
Code
function prev_next_nodeapi(&$node, $op) {
$found = FALSE;
foreach (_prev_next_node_types() as $type) {
if ($node->type == $type) {
$found = TRUE;
break;
}
}
if (!$found) {
return;
}
switch ($op) {
case 'insert':
_prev_next_add($node->nid);
break;
case 'update':
_prev_next_modify($node->nid);
break;
case 'delete':
_prev_next_remove($node->nid);
break;
}
}