You are here

function statspro_nodeapi in Statistics Pro 6

Same name and namespace in other branches
  1. 6.2 statspro.module \statspro_nodeapi()

Implementation of hook_nodeapi().

File

./statspro.module, line 115
Main module of Statistcs pro module

Code

function statspro_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  $term_rebuild = variable_get('statspro_term_rebuild', FALSE);
  if (!$term_rebuild) {
    switch ($op) {
      case 'insert':
        variable_set('statspro_term_rebuild', TRUE);
        break;
      case 'update':
        variable_set('statspro_term_rebuild', TRUE);
        break;
      case 'delete':
        variable_set('statspro_term_rebuild', TRUE);
        break;
    }
  }
}