You are here

function activeedit_nodeapi in Javascript Tools 5

Implementation of hook_nodeapi().

File

activeedit/modules/node.inc, line 6

Code

function activeedit_nodeapi(&$node, $op, $teaser = NULL, $page = NULL) {
  switch ($op) {
    case 'view':
      if (node_access('update', $node)) {
        $node->content['activeedit_data'] = array(
          '#value' => activeedit_node_data_form($node),
          '#weight' => 10,
        );
      }
      break;
  }
}