function statspro_nodeapi in Statistics Pro 6.2
Same name and namespace in other branches
- 6 statspro.module \statspro_nodeapi()
Implementation of hook_nodeapi().
File
- ./
statspro.module, line 247 - 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;
}
}
}