function web_widgets_style_iframe in Web Widgets 6
Same name and namespace in other branches
- 7 iframe/web_widgets_style_iframe.inc \web_widgets_style_iframe()
Define the theme functions for the web_widgets module
File
- iframe/
web_widgets_style_iframe.inc, line 10 - Iframe-specific functions, preprocessing
Code
function web_widgets_style_iframe() {
$definition = array(
'theme' => array(
// The HTML-Javascript code lines what should be pasted into the external site
'web_widgets_iframe' => array(
'template' => 'web_widgets_iframe',
'arguments' => array(
'path' => NULL,
'width' => NULL,
'height' => NULL,
),
'path' => drupal_get_path('module', 'web_widgets') . '/iframe',
),
// The html page which is used inside the iframe, usually will show up on an external site
'web_widgets_iframe_wrapper' => array(
'template' => 'web_widgets_iframe_wrapper',
'arguments' => array(
'content' => NULL,
'title' => NULL,
),
'path' => drupal_get_path('module', 'web_widgets') . '/iframe',
),
),
'human_readable' => t('IFrame'),
);
return $definition;
}