You are here

function theme_emaudio_emaudio_embed in Embedded Media Field 5

File

contrib/emaudio/emaudio.module, line 323

Code

function theme_emaudio_emaudio_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_emaudio_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;
}