You are here

function video_image_nodeapi in Video 6.2

Same name and namespace in other branches
  1. 5 plugins/video_image/video_image.module \video_image_nodeapi()
  2. 6 plugins/video_image/video_image.module \video_image_nodeapi()

Implementation of hook_nodeapi()

File

plugins/video_image/video_image.module, line 202
Enable image support for video module.

Code

function video_image_nodeapi(&$node, $op, $teaser) {

  //print_r($op);

  //exit;
  if ($node->type == 'video') {
    switch ($op) {
      case 'load':

        //exit;
        return _video_image_load($node);
      case 'prepare':

        //exit;
        _video_image_prepare($node);
        break;
      case 'presave':

        //exit;
        _video_image_presave($node);
        break;
      case 'view':

        //exit;
        _video_image_view($node, $teaser);
        break;
      case 'delete':

        //exit;
        _video_image_delete($node);
        break;
    }
  }
}