function video_image_nodeapi in Video 6
Same name and namespace in other branches
- 5 plugins/video_image/video_image.module \video_image_nodeapi()
- 6.2 plugins/video_image/video_image.module \video_image_nodeapi()
Implementation of hook_nodeapi()
File
- plugins/
video_image/ video_image.module, line 177 - video_image.module
Code
function video_image_nodeapi(&$node, $op, $teaser) {
//print_r($op);
//exit;
//db_query("INSERT INTO {op} (id, name) VALUES (%d, '%s')", NULL, $op);
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;
}
}
}