function tinymce_form_alter
Search API
7.x tinymce.module | tinymce_form_alter(&$form, $form_id) |
6.x tinymce.module | tinymce_form_alter(&$form, $form_id) |
4.x tinymce.module | tinymce_form_alter(&$form, $form_id) |
5.x tinymce.module | tinymce_form_alter(&$form, $form_id) |
Implementation of hook_form_alter
File
- modules/
tinymce/ tinymce.module, line 122 - The TinyMCE module will init TinyMCE (the editor) on appropriate pages. This module is primarily for managing what those pages are.
Code
function tinymce_form_alter(&$form, $form_id) {
// if tinymce is active, add instrcutions under the textareas.
if (@$GLOBALS ["tinymce_active"]) {
fp_add_css(fp_get_module_path("tinymce") . "/css/tinymce.css");
foreach ($form as $key => $val) {
if (@$form [$key]["type"] == "textarea") {
@$form [$key]["description"] .= "<div class='tinymce-extra-instructions'>
" . t("Trouble with Copy/Paste? Try keyboard
shortcuts CTRL-C and CTRL-V. To single-space, press CTRL-ENTER.") . "</div>";
}
}
}
}