function wysiwyg_file_download in Wysiwyg 6.2
Implements hook_file_download().
File
- ./
wysiwyg.module, line 927 - Integrates client-side editors with Drupal.
Code
function wysiwyg_file_download($file) {
if (preg_match('/^js\\/wysiwyg_(\\w+)_.+\\.js$/', $file, $matches)) {
$editor_name = $matches[1];
if (($editor = wysiwyg_get_editor($editor_name)) && $editor['installed']) {
return array(
'Content-type: text/javascript',
);
}
}
}