You are here

function classified_nodeapi in Classified Ads 6.3

Implements hook_nodeapi().

Adapters to D7 hook_node_* hooks.

File

./classified.module, line 1326
A pure D6 classified ads module inspired by the ed_classified module.

Code

function classified_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
  if ($node->type != 'classified') {
    return;
  }
  switch ($op) {
    case 'delete revision':
      classified_node_revision_delete($node);
      break;
    case 'presave':
      classified_node_presave($node);
      break;
  }
}