function wysiwyg_form_alter in Wysiwyg 6
Same name and namespace in other branches
- 5.2 wysiwyg.module \wysiwyg_form_alter()
- 5 wysiwyg.module \wysiwyg_form_alter()
- 6.2 wysiwyg.module \wysiwyg_form_alter()
Implementation of hook_form_alter().
Before Drupal 7, there is no way to easily identify form fields that are input format enabled. As a workaround, we assign a form #after_build processing callback that is executed on all forms after they have been completely built, so form elements are in their effective order and position already.
See also
File
- ./
wysiwyg.module, line 58 - Integrate client-side editors with Drupal.
Code
function wysiwyg_form_alter(&$form, &$form_state) {
$form['#after_build'][] = 'wysiwyg_process_form';
// Teaser splitter is unconditionally removed and NOT supported.
if (isset($form['body_field'])) {
unset($form['body_field']['teaser_js']);
}
}