You are here

function content_nodeapi in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 content.module \content_nodeapi()
  2. 6.3 content.module \content_nodeapi()
  3. 6.2 content.module \content_nodeapi()

Implementation of hook_nodeapi().

File

./content.module, line 387
Allows administrators to associate custom fields to content types.

Code

function content_nodeapi(&$node, $op, $teaser, $page) {
  switch ($op) {
    case 'load':
      return content_load($node);
    case 'validate':
      content_validate($node);
      break;
    case 'presave':
      content_presave($node);
      break;
    case 'insert':
      content_insert($node);
      break;
    case 'update':
      content_update($node);
      break;
    case 'delete':
      content_delete($node);
      break;
    case 'delete revision':
      content_delete_revision($node);
      break;
    case 'view':
      content_view($node, $teaser, $page);
      break;
    case 'alter':
      content_alter($node, $teaser, $page);
      break;
    case 'prepare translation':
      content_prepare_translation($node);
      break;
  }
}