You are here

function theme_iframe_formatter_iframeonly in Iframe 6

Theme function for 'iframeonly' text field formatter.

File

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

Code

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

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

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