You are here

function theme_emaudio_audio_audio in Embedded Media Field 6.2

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

File

contrib/emaudio/emaudio.theme.inc, line 82
This defines the various theme functions for Embedded Audio Field (emaudio).

Code

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