function cloud_zoom_theme in Cloud Zoom 6
Same name and namespace in other branches
- 8 cloud_zoom.module \cloud_zoom_theme()
- 7 cloud_zoom.module \cloud_zoom_theme()
Implementation of hook_theme().
File
- ./
cloud_zoom.module, line 124 - This module integrates the Cloud Zoom JQuery library from: http://www.professorcloud.com/mainsite/cloud-zoom.htm
Code
function cloud_zoom_theme() {
// Define a base theme handler
$theme = array(
'cloud_zoom_formatter_imagefield' => array(
'arguments' => array(
'element' => NULL,
),
'file' => 'cloud_zoom.theme.inc',
),
'cloud_zoom_admin_settings_table' => array(
'arguments' => array(
'element' => NULL,
),
'file' => 'cloud_zoom.theme.inc',
),
);
$presets = cloud_zoom_get_settings();
foreach ($presets as $preset) {
$theme['cloud_zoom_formatter_imagefield__cloud_zoom__' . $preset['name']] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_cloud_zoom_formatter_imagefield',
'file' => 'cloud_zoom.theme.inc',
);
}
return $theme;
}