function web_widgets_style_google_gadgets in Web Widgets 7
Same name and namespace in other branches
- 6 google_gadgets/web_widgets_style_google_gadgets.inc \web_widgets_style_google_gadgets()
Define the theme functions for the web_widgets module
File
- google_gadgets/
web_widgets_style_google_gadgets.inc, line 11 - google_gadgets specific functions, preprocessing
Code
function web_widgets_style_google_gadgets() {
$definition = array(
'theme' => array(
// The HTML-Javascript code lines what should be pasted into the external site
'web_widgets_google_gadgets' => array(
'template' => 'web_widgets_google_gadgets',
'arguments' => array(
'path' => NULL,
'width' => NULL,
'height' => NULL,
),
'path' => drupal_get_path('module', 'web_widgets') . '/google_gadgets',
),
// Possible wrapper code around the widget
'web_widgets_google_gadgets_wrapper' => array(
'template' => 'web_widgets_google_gadgets_wrapper',
'arguments' => array(
'content' => NULL,
'title' => NULL,
),
'path' => drupal_get_path('module', 'web_widgets') . '/google_gadgets',
),
),
'human_readable' => t('Google Gadgets'),
);
return $definition;
}