function swftools_integrate_nodeapi in SWF Tools 5
File
- ./
swftools_integrate.module, line 25
Code
function swftools_integrate_nodeapi(&$node, $op, $a3 = NULL, $a4 = NULL) {
switch ($op) {
case 'view':
$display_types = variable_get('swftools_integrate_render_upload', array());
if (count($display_types) && isset($node->files)) {
$playlist_data = swftools_prepare_playlist_data($node->files, $title = $node->title, TRUE, $display_types);
$swf = swf_list($playlist_data, SWFDEFAULT, SWFDEFAULT, array(
'class' => 'swftools-upload',
), array(
'action' => $action,
));
$node->content['swftools_integrate_upload']['#value'] = $swf;
$node->swftools_integrate['upload'] = $swf;
return;
}
break;
}
}