function link_image_theme in Link Image Formatter 6
Same name and namespace in other branches
- 7 link_image.module \link_image_theme()
Implements hook_theme().
File
- ./
link_image.module, line 21
Code
function link_image_theme() {
$base = array(
'file' => 'link_image.theme.inc',
);
$theme = array();
$theme['link_image_formatter_image'] = array(
'arguments' => array(
'element' => NULL,
),
) + $base;
$theme['link_image_formatter_image_linked'] = array(
'arguments' => array(
'element' => NULL,
),
) + $base;
$theme['link_image_formatter_image_imagelink'] = array(
'arguments' => array(
'element' => NULL,
),
) + $base;
if (module_exists('imagecache_external')) {
$theme['link_image_formatter_imagecache_default'] = array(
'arguments' => array(
'element' => NULL,
),
) + $base;
$theme['link_image_formatter_imagecache_linked'] = array(
'arguments' => array(
'element' => NULL,
),
) + $base;
$theme['link_image_formatter_imagecache_imagelink'] = array(
'arguments' => array(
'element' => NULL,
),
) + $base;
foreach (imagecache_presets() as $preset) {
$theme['link_image_formatter_' . $preset['presetname'] . '_imagecache_default'] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_link_image_formatter_imagecache_default',
) + $base;
$theme['link_image_formatter_' . $preset['presetname'] . '_imagecache_linked'] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_link_image_formatter_imagecache_linked',
) + $base;
$theme['link_image_formatter_' . $preset['presetname'] . '_imagecache_imagelink'] = array(
'arguments' => array(
'element' => NULL,
),
'function' => 'theme_link_image_formatter_imagecache_imagelink',
) + $base;
}
}
return $theme;
}