function video_optmetadata_nodeapi in Video 6
Same name and namespace in other branches
- 5 plugins/video_optmetadata/video_optmetadata.module \video_optmetadata_nodeapi()
- 6.2 plugins/video_optmetadata/video_optmetadata.module \video_optmetadata_nodeapi()
Implementation of hook_nodeapi()
File
- plugins/
video_optmetadata/ video_optmetadata.module, line 90 - Enable addition of optional metadata on video nodes created by video module.
Code
function video_optmetadata_nodeapi(&$node, $op, $teaser) {
if ($node->type == 'video') {
switch ($op) {
case 'view':
//Add the HTML formatted output of the optional video metadata to the bottom.
$node->body .= theme('video_metadata', $node);
break;
}
}
}