function fckeditor_form_alter in FCKeditor - WYSIWYG HTML editor 5.2
Drupal 5 does not properly support #after_build in hook_elements().
See also
File
- ./
fckeditor.module, line 168 - FCKeditor - The text editor for Internet - http://www.fckeditor.net Copyright (C) 2003-2007 Frederico Caldeira Knabben
Code
function fckeditor_form_alter($form_id, &$form) {
if (user_access('access fckeditor') && fckeditor_is_compatible_client()) {
if (!isset($form['#after_build'])) {
$form['#after_build'] = array();
}
if (!in_array('fckeditor_process_form', $form['#after_build'])) {
array_unshift($form['#after_build'], 'fckeditor_process_form');
}
}
}