function iframe_formatter_default_helper in Iframe 7
Formatter function for 'default' text field formatter.
1 call to iframe_formatter_default_helper()
- iframe_field_formatter_view in ./
iframe.module - Implements hook_field_formatter_view().
File
- ./
iframe.module, line 398 - Defines an iframe field with all attributes.
Code
function iframe_formatter_default_helper($item, $delta) {
// If no url given display nothing.
if (empty($item['url'])) {
return '';
}
if (!isset($item['title'])) {
$item['title'] = '';
}
// Display all
return iframe_iframe($item['title'], $item['url'], $item);
}