You are here

emfield.themes.inc in Embedded Media Field 6.3

Basic theme functions for Embedded Media Field.

File

includes/themes/emfield.themes.inc
View source
<?php

/**
 *  @file
 *  Basic theme functions for Embedded Media Field.
 */

/**
 * Display a link to the original media.
 */
function theme_emfield_formatter_default($element) {
  if ($uri = $element['#item']['uri']) {
    $media = emapi_media_from_uri($uri);
    if ($media) {
      return l($uri, $media
        ->url());
    }
  }
}

Functions

Namesort descending Description
theme_emfield_formatter_default Display a link to the original media.