function download_file_theme in DownloadFile 6
Same name and namespace in other branches
- 8 download_file.module \download_file_theme()
- 7.3 download_file.module \download_file_theme()
- 7 download_file.module \download_file_theme()
- 7.2 download_file.module \download_file_theme()
Implementation of hook_theme().
File
- ./
download_file.module, line 76 - Module to direct download files or images.
Code
function download_file_theme() {
$theme = array(
'download_file_formatter_direct_download' => array(
'arguments' => array(
'element' => NULL,
),
'file' => 'download_file.formatter.inc',
),
'download_file_formatter_direct_download_icon' => array(
'arguments' => array(
'element' => NULL,
),
'file' => 'download_file.formatter.inc',
),
'download_file_formatter_direct_download_accessible' => array(
'arguments' => array(
'element' => NULL,
),
'file' => 'download_file.formatter.inc',
),
'download_file_formatter_direct_download_accessible_icon' => array(
'arguments' => array(
'element' => NULL,
),
'file' => 'download_file.formatter.inc',
),
'download_file_direct_download_item' => array(
'arguments' => array(
'file' => NULL,
),
'file' => 'download_file.formatter.inc',
),
'download_file_direct_download_icon_item' => array(
'arguments' => array(
'file' => NULL,
),
'file' => 'download_file.formatter.inc',
),
'download_file_direct_download_item_accessible' => array(
'arguments' => array(
'file' => NULL,
),
'file' => 'download_file.formatter.inc',
),
'download_file_direct_download_icon_item_accessible' => array(
'arguments' => array(
'file' => NULL,
),
'file' => 'download_file.formatter.inc',
),
'download_file_detail_accessible' => array(
'arguments' => array(
'file' => NULL,
),
'file' => 'download_file.formatter.inc',
),
'download_file_extension_accessible' => array(
'variables' => array(
'extension' => NULL,
),
'file' => 'download_file.formatter.inc',
),
'download_file_bytes_accessible' => array(
'arguments' => array(
'filesize' => NULL,
),
'file' => 'download_file.formatter.inc',
),
);
// ImageCache support
if (module_exists('imagecache') && module_exists('imagefield')) {
foreach (imagecache_presets() as $preset) {
$theme['download_file_formatter_' . $preset['presetname'] . '_imagelink_direct_download'] = array(
'arguments' => array(
'element' => NULL,
),
'file' => 'download_file.formatter.inc',
'function' => 'theme_download_file_formatter_imagecache_imagelink_direct_download',
);
$theme['download_file_formatter_' . $preset['presetname'] . '_accessiblelink_direct_download'] = array(
'arguments' => array(
'element' => NULL,
),
'file' => 'download_file.formatter.inc',
'function' => 'theme_download_file_formatter_imagecache_accessiblelink_direct_download',
);
}
$theme['download_file_imagecache_imagelink_direct_download'] = array(
'arguments' => array(
'file' => NULL,
'formatter' => NULL,
),
'file' => 'download_file.formatter.inc',
);
$theme['download_file_imagecache_accessiblelink_direct_download'] = array(
'arguments' => array(
'file' => NULL,
'formatter' => NULL,
),
'file' => 'download_file.formatter.inc',
);
}
// Insert support
if (module_exists('insert')) {
$theme['download_file_insert_direct_download_item'] = array(
'arguments' => array(
'file' => NULL,
'widget' => NULL,
),
'file' => 'download_file.inc.inc',
);
$theme['download_file_insert_direct_download_icon_item'] = array(
'arguments' => array(
'file' => NULL,
'widget' => NULL,
),
'file' => 'download_file.inc.inc',
);
$theme['download_file_insert_direct_download_item_accessible'] = array(
'arguments' => array(
'file' => NULL,
'widget' => NULL,
),
'file' => 'download_file.inc.inc',
);
$theme['download_file_insert_direct_download_icon_item_accessible'] = array(
'arguments' => array(
'file' => NULL,
'widget' => NULL,
),
'file' => 'download_file.inc.inc',
);
$theme['download_file_insert_link'] = array(
'arguments' => array(
'item' => NULL,
'widget' => NULL,
),
'template' => 'download-file-insert-link',
'file' => 'download_file.inc',
);
}
return $theme;
}