function wysiwyg_template_html_print in Wysiwyg API template plugin 7.2
Menu callback to display the loaded template
1 string reference to 'wysiwyg_template_html_print'
- wysiwyg_template_menu in ./
wysiwyg_template.module - Implementation of hook_menu().
File
- ./
wysiwyg_template.module, line 295 - Makes TinyMCE Templates available as plugin for client-side editors integrated via Wysiwyg API.
Code
function wysiwyg_template_html_print($body, $editorName) {
//don't cache templates
drupal_add_http_header('CacheControl', 'no-cache');
drupal_add_http_header('Expires', '-1');
drupal_add_http_header('Content-Type', 'text/javascript; charset=UTF-8');
switch ($editorName) {
case 'tinymce':
print $body;
break;
}
}