function spaces_nodeapi in Spaces 6
Same name and namespace in other branches
- 5.2 spaces.module \spaces_nodeapi()
- 5 spaces.module \spaces_nodeapi()
- 6.2 spaces.module \spaces_nodeapi()
Implementation of hook_nodeapi().
File
- ./
spaces.module, line 196
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;
}
}