You are here

function tinymce_form_alter in TinyMCE 6

Same name and namespace in other branches
  1. 6.2 tinymce.module \tinymce_form_alter()

Implementation of hook_form_alter()

File

./tinymce.module, line 86
Integrate the TinyMCE editor (http://tinymce.moxiecode.com/) into Drupal.

Code

function tinymce_form_alter(&$form, &$form_state) {

  // disable 'teaser' textarea
  unset($form['body_field']['teaser_js']);
  $form['body_field']['teaser_include'] = array();
}