function colorbox_theme in Colorbox 6
Same name and namespace in other branches
- 8 colorbox.module \colorbox_theme()
- 7.2 colorbox.module \colorbox_theme()
- 7 colorbox.module \colorbox_theme()
Implementation of hook_theme().
File
- ./
colorbox.module, line 20 - A light-weight, customizable lightbox plugin for jQuery 1.3
Code
function colorbox_theme() {
$theme = array(
'colorbox_imagefield' => array(
'arguments' => array(
'namespace' => NULL,
'path' => NULL,
'alt' => NULL,
'title' => NULL,
'gid' => NULL,
'field_name' => NULL,
'attributes' => NULL,
),
'file' => 'colorbox.theme.inc',
),
'colorbox_insert_image' => array(
'arguments' => array(
'item' => NULL,
'widget' => NULL,
),
'template' => 'colorbox-insert-image',
'file' => 'colorbox.theme.inc',
),
);
if (module_exists('imagecache')) {
foreach (imagecache_presets() as $preset) {
$theme['colorbox_formatter_' . $preset['presetname'] . '__colorbox'] = array(
'function' => 'theme_colorbox_formatter_imagefield',
'arguments' => array(
'element' => NULL,
),
'file' => 'colorbox.theme.inc',
);
}
}
return $theme;
}