function download_file_insert_content in DownloadFile 6
Implementation of hook_insert_content().
File
- ./
download_file.inc, line 37 - Insert support for DownloadFile module.
Code
function download_file_insert_content($item, $style, $widget) {
$style_name = $style['name'];
switch ($style_name) {
case 'direct_download':
return theme('download_file_insert_direct_download_item', $item, $widget);
case 'direct_download_icon':
return theme('download_file_insert_direct_download_icon_item', $item, $widget);
case 'direct_download_accessible':
return theme('download_file_insert_direct_download_item_accessible', $item, $widget);
case 'direct_download_accessible_icon':
return theme('download_file_insert_direct_download_icon_item_accessible', $item, $widget);
default:
return theme('insert_link', $item, $widget);
}
}