function imagecache_theme in ImageCache 6.2
Implementation of hook_theme().
File
- ./
imagecache.module, line 122 - Dynamic image resizer and image cacher.
Code
function imagecache_theme() {
$theme = array(
'imagecache' => array(
'arguments' => array(
'namespace' => NULL,
'path' => NULL,
'alt' => NULL,
'title' => NULL,
),
),
'imagecache_imagelink' => array(
'arguments' => array(
'namespace' => NULL,
'path' => NULL,
'alt' => NULL,
'title' => NULL,
'attributes' => array(),
),
),
'imagecache_resize' => array(
'file' => 'imagecache_actions.inc',
'arguments' => array(
'element' => NULL,
),
),
'imagecache_scale' => array(
'file' => 'imagecache_actions.inc',
'arguments' => array(
'element' => NULL,
),
),
'imagecache_scale_and_crop' => array(
'file' => 'imagecache_actions.inc',
'arguments' => array(
'element' => NULL,
),
),
'imagecache_deprecated_scale' => array(
'file' => 'imagecache_actions.inc',
'arguments' => array(
'element' => NULL,
),
),
'imagecache_crop' => array(
'file' => 'imagecache_actions.inc',
'arguments' => array(
'element' => NULL,
),
),
'imagecache_desaturate' => array(
'file' => 'imagecache_actions.inc',
'arguments' => array(
'element' => NULL,
),
),
'imagecache_rotate' => array(
'file' => 'imagecache_actions.inc',
'arguments' => array(
'element' => NULL,
),
),
'imagecache_sharpen' => array(
'file' => 'imagecache_actions.inc',
'arguments' => array(
'element' => NULL,
),
),
);
foreach (imagecache_presets() as $preset) {
$theme['imagecache_formatter_' . $preset['presetname'] . '_default'] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_imagecache_formatter_default',
);
$theme['imagecache_formatter_' . $preset['presetname'] . '_linked'] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_imagecache_formatter_linked',
);
$theme['imagecache_formatter_' . $preset['presetname'] . '_imagelink'] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_imagecache_formatter_imagelink',
);
$theme['imagecache_formatter_' . $preset['presetname'] . '_path'] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_imagecache_formatter_path',
);
$theme['imagecache_formatter_' . $preset['presetname'] . '_url'] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_imagecache_formatter_url',
);
}
return $theme;
}