function omega_tools_file_download in Omega Tools 7.3
Implements hook_file_download().
1 call to omega_tools_file_download()
- omega_tools_subtheme_wizard_finished_form_submit in includes/
omega_tools.wizard.inc - @todo
File
- ./
omega_tools.module, line 68
Code
function omega_tools_file_download($uri) {
if (strpos(file_uri_target($uri), 'omega-tools/') === 0) {
return array(
'Content-Type' => file_get_mimetype($uri),
'Content-Length' => filesize(drupal_realpath($uri)),
'Content-Disposition' => 'attachment; filename="' . basename($uri) . '"',
);
}
}