I am creating a custom form and have run into a problem. I’m using the WYSIWYG module and for some reason the text areas on this custom form don’t show as rich text editors (tinymce shows on other parts of he site)
$form['terms_format'][implode('~', array(MODULE_NAME, FIELD_TERMS))] = array( '#title' => t('Terms and Conditions') ,'#type' => 'textarea' ,'#description' => t('Terms and conditiona') ,'#default_value' => variable_get(implode('~', array(MODULE_NAME, FIELD_TERMS)), "") ,'#required' => TRUE ); $form['terms_format']['format'] = filter_form(FILTER_FORMAT_DEFAULT);
Any ideas what i’m doing wrong? I’m using drupal 6.