You are here

function spaces_nodeapi in Spaces 6.2

Same name and namespace in other branches
  1. 5.2 spaces.module \spaces_nodeapi()
  2. 5 spaces.module \spaces_nodeapi()
  3. 6 spaces.module \spaces_nodeapi()

Implementation of hook_nodeapi().

File

./spaces.module, line 264

Code

function spaces_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
  if ($op == 'view' && $page && menu_get_object() === $node) {
    spaces_router('node', $node);
  }
  if ($op == 'prepare') {
    spaces_router('node', $node);
  }
}