function advanced_forum_nodeapi in Advanced Forum 6.2
Implementation of hook_nodeapi().
File
- ./
advanced_forum.module, line 364 - Enables the look and feel of other popular forum software.
Code
function advanced_forum_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
if ($op == 'update' || $op == 'insert' || $op == 'delete') {
// Update the cached statistics.
advanced_forum_statistics_replies(TRUE);
}
if ($op == 'view' && !empty($node->content['forum_navigation'])) {
if (!empty($node->content['forum_navigation'])) {
// Move the forum navigation to a seperate variable so it doesn't
// get lumped in with the content.
$node->advanced_forum_navigation = $node->content['forum_navigation']['#value'];
$node->content['forum_navigation'] = NULL;
}
}
}