function forum_access_node_load in Forum Access 7
Implement hook_node_load().
Sets $node->forum_tid to avoid confusing forum_node_view().
File
- ./
forum_access.module, line 310 - forum_access.module
Code
function forum_access_node_load($nodes, $types) {
foreach ($nodes as $node) {
if (isset($node->taxonomy_forums) && empty($node->taxonomy_forums) && !isset($node->forum_tid)) {
$node->forum_tid = NULL;
}
}
}