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