You are here

function iframe_formatter_only_helper in Iframe 7

Formatter function for 'iframeonly' text field formatter.

1 call to iframe_formatter_only_helper()
iframe_field_formatter_view in ./iframe.module
Implements hook_field_formatter_view().

File

./iframe.module, line 413
Defines an iframe field with all attributes.

Code

function iframe_formatter_only_helper($item, $delta) {

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

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