You are here

function community_tags_node_nodeapi in Community Tags 6.2

Implementation of hook_nodeapi(). Handle taxonomy on the node edit page and synchronise with CT where necessary.

Community tags hooks should be called after taxonomy module hooks - see system weight in community_tags.install.

File

community_tags_node/community_tags_node.module, line 45
community_tags_node.module

Code

function community_tags_node_nodeapi(&$node, $op, $teaser) {
  switch ($op) {
    case 'insert':
      _community_tags_node_insert($node);
      break;
    case 'update':
      if (!isset($node->community_tags_op)) {
        _community_tags_node_update($node);
      }
      break;
    case 'delete':

      // this is handled by community tags for the purpose of maintaining referential integrity
      break;
  }
}