Fix for hook_nodeapi

  1. function hook_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  2.   switch ($op) {
  3.     case 'insert':
  4.       $node->taxonomy = array(1 => taxonomy_get_term(1));
  5.       node_save($node);
  6.       }
  7.       break;
  8.   }
  9. }

Submit Fix

Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Select the syntax highlighting mode to use.