function spaces_nodeapi in Spaces 5.2
Same name and namespace in other branches
- 5 spaces.module \spaces_nodeapi()
- 6 spaces.module \spaces_nodeapi()
- 6.2 spaces.module \spaces_nodeapi()
Implementation of hook_nodeapi().
File
- ./
spaces.module, line 131
Code
function spaces_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
switch ($op) {
case 'view':
if ($page && !$teaser && arg(0) == 'node' && arg(1) == $node->nid) {
spaces_router('node view', $node);
}
break;
}
}