You are here

function theme_emfield_formatter_default in Embedded Media Field 6.3

Display a link to the original media.

File

includes/themes/emfield.themes.inc, line 11
Basic theme functions for Embedded Media Field.

Code

function theme_emfield_formatter_default($element) {
  if ($uri = $element['#item']['uri']) {
    $media = emapi_media_from_uri($uri);
    if ($media) {
      return l($uri, $media
        ->url());
    }
  }
}