You are here

function theme_emvideo_video_link in Embedded Media Field 6.3

Same name and namespace in other branches
  1. 6 contrib/emvideo/emvideo.theme.inc \theme_emvideo_video_link()
  2. 6.2 contrib/emvideo/emvideo.theme.inc \theme_emvideo_video_link()

File

contrib/emvideo/emvideo.theme.inc, line 190
This defines the various theme functions for Embedded Video Field (emvideo).

Code

function theme_emvideo_video_link($field, $item, $formatter, $node, $options = array()) {
  $title = isset($options['link_title']) ? $options['link_title'] : (isset($options['title']) ? $options['title'] : (isset($field['widget']['thumbnail_link_title']) ? $field['widget']['thumbnail_link_title'] : variable_get('emvideo_default_thumbnail_link_title', t('See video'))));
  $url = emfield_include_invoke('emvideo', $item['provider'], 'embedded_link', $item['value'], $item['data']);
  return l($title, $url);
}