You are here

function similarterms_nodeapi in Similar By Terms 6

Implementation of hook_nodeapi().

File

./similarterms.module, line 434
Similar By Terms module displays a block with similar content based on taxonomy terms.

Code

function similarterms_nodeapi($node, $op, $arg = 0) {
  switch ($op) {
    case 'delete':
      similarterms_node_delete($node);
      break;
    case 'insert':
    case 'update':
      similarterms_node_save($node);
      break;
    case 'validate':
      similarterms_node_validate($node);
      break;
  }
}