You are here

function theme_emaudio_audio_audio in Embedded Media Field 5

Same name and namespace in other branches
  1. 6.3 contrib/emaudio/emaudio.theme.inc \theme_emaudio_audio_audio()
  2. 6 contrib/emaudio/emaudio.theme.inc \theme_emaudio_audio_audio()
  3. 6.2 contrib/emaudio/emaudio.theme.inc \theme_emaudio_audio_audio()
1 theme call to theme_emaudio_audio_audio()
theme_emaudio_default in contrib/emaudio/emaudio.module

File

contrib/emaudio/emaudio.module, line 366

Code

function theme_emaudio_audio_audio($field, $item, $formatter, $node, $options = array()) {
  if ($item['value'] && $item['provider']) {
    $embed = $item['value'];
    $width = $field['widget']['audio_width'] ? $field['widget']['audio_width'] : variable_get('emaudio_default_audio_width', EMAUDIO_DEFAULT_AUDIO_WIDTH);
    $height = $field['widget']['audio_height'] ? $field['widget']['audio_height'] : variable_get('emaudio_default_audio_height', EMAUDIO_DEFAULT_AUDIO_HEIGHT);
    $autoplay = $field['widget']['audio_autoplay'];
    $output = module_invoke('emfield', 'include_invoke', 'emaudio', $item['provider'], 'audio', $embed, $width, $height, $field, $item, $autoplay, $node, $options);
  }
  return $output;
}