function theme_emaudio_audio_embed in Embedded Media Field 6
Same name and namespace in other branches
- 6.3 contrib/emaudio/emaudio.theme.inc \theme_emaudio_audio_embed()
- 6.2 contrib/emaudio/emaudio.theme.inc \theme_emaudio_audio_embed()
@file This defines the various theme functions for Embedded Audio Field (emaudio).
File
- contrib/
emaudio/ emaudio.theme.inc, line 8 - This defines the various theme functions for Embedded Audio Field (emaudio).
Code
function theme_emaudio_audio_embed($field, $item, $formatter, $node, $options = array()) {
/*
Note you can use this in node.tpl.php, substituting the proper field type:
$field_type = 'field_audio';
$system_types = _content_type_info();
$field = $system_types['fields'][$field_type];
$field['widget'] = $system_types['content types'][$node->type]['fields'][$field_type]['widget'];
print theme('emaudio_audio_embed', $field, $node->{$field_type}[0], 'emaudio_embed', $node);
*/
if ($item['value'] && $item['provider']) {
$output = drupal_get_form('emaudio_embed_form', $field, $item, $formatter, $node, $options);
}
return $output;
}