You are here

function theme_iframe_formatter_asurl_withuri in Iframe 6

Theme function for 'asurl_withuri' text field formatter.

File

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

Code

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

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

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