function web_widgets_theme in Web Widgets 6
Same name and namespace in other branches
- 7 web_widgets.module \web_widgets_theme()
Implementation of hook_theme().
File
- ./
web_widgets.module, line 20 - web_widgets module main. Contains the views api hook and theming functions.
Code
function web_widgets_theme() {
$theme = array(
'web_widgets_embed_code' => array(
'arguments' => array(
'code' => NULL,
),
),
'web_widgets_tracking_code' => array(
'arguments' => array(
'id' => NULL,
),
),
);
$style_files = array_keys(web_widgets_get_styles());
foreach ($style_files as $style) {
require_once web_widgets_get_style_inc($style);
$definition = call_user_func('web_widgets_style_' . $style);
if (is_array($definition['theme'])) {
$theme += $definition['theme'];
}
}
return $theme;
}