You are here

function context_nodeapi in Context 6.3

Same name and namespace in other branches
  1. 6 context.core.inc \context_nodeapi()
  2. 6.2 context.core.inc \context_nodeapi()

Implementation of hook_nodeapi().

File

./context.core.inc, line 131

Code

function context_nodeapi(&$node, $op, $teaser, $page) {
  if ($op == 'view' && $page) {
    $object = menu_get_object();
    if (isset($object->nid) && $object->nid === $node->nid) {
      context_node_condition($node, 'view');
    }
  }
}