You are here

function video_image_nodeapi in Video 5

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

Implementation of hook_nodeapi()

File

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

Code

function video_image_nodeapi(&$node, $op, $teaser) {
  if ($node->type == 'video') {
    switch ($op) {
      case 'load':
        return _video_image_load($node);
      case 'prepare':
        _video_image_prepare($node);
        break;
      case 'submit':
        _video_image_submit($node);
        break;
      case 'view':
        _video_image_view($node, $teaser);
        break;
      case 'delete':
        _video_image_delete($node);
        break;
    }
  }
}