function file_force_theme in File Force Download 6.2
Same name and namespace in other branches
- 6 file_force.module \file_force_theme()
- 7 file_force.module \file_force_theme()
Implementation of hook_theme().
File
- ./
file_force.module, line 29 - file_force.module
Code
function file_force_theme() {
$theme = array();
// FileField formatters
if (module_exists('filefield')) {
$theme['file_force_formatter_default_ff'] = array(
'arguments' => array(
'element' => NULL,
),
'file' => 'file_force_formatter.inc',
);
$theme['file_force_formatter_url_plain_ff'] = array(
'arguments' => array(
'element' => NULL,
),
'file' => 'file_force_formatter.inc',
);
$theme['file_force_item'] = array(
'arguments' => array(
'file' => NULL,
'field' => NULL,
),
'file' => 'file_force_formatter.inc',
);
$theme['file_force_file'] = array(
'arguments' => array(
'file' => NULL,
),
'file' => 'file_force_formatter.inc',
);
}
// ImageField formatters
if (module_exists('imagefield')) {
$theme['file_force_formatter_image_imagelink_ff'] = array(
'arguments' => array(
'element' => NULL,
),
'file' => 'file_force_formatter.inc',
);
}
// ImageCache formatters
if (module_exists('imagecache')) {
foreach (imagecache_presets() as $preset) {
$theme['file_force_formatter_' . $preset['presetname'] . '_imagelink_ff'] = array(
'arguments' => array(
'element' => NULL,
),
'file' => 'file_force_formatter.inc',
'function' => 'theme_file_force_formatter_imagecache_imagelink_ff',
);
}
}
return $theme;
}