You are here

function theme_iframe_formatter_asurl in Iframe 6

Theme function for 'asurl' text field formatter.

File

./iframe.module, line 666
Defines simple iframe field types. based on the cck-module "link" by quicksketch MODULE-Funtions

Code

function theme_iframe_formatter_asurl($element) {
  dmsg(3, 'func theme_iframe_formatter_asurl');

  // If no url given display nothing.
  if (empty($element['#item']['url'])) {
    return '';
  }

  // Display all
  $linktext = empty($element['#item']['display_title']) ? $element['#item']['url'] : $element['#item']['display_title'];
  return l($linktext, $element['#item']['url'], $element['#item']);
}