Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- );
- $defaults = array(
- 'value' => '',
- 'format' => filter_default_format(),
- );
- $my_richtext_field = variable_get('my_richtext_field', $defaults);
- $form['body'] = array(
- '#type' => 'text_format',
- '#title' => 'Body',
- '#rows' => '10',
- '#cols' => '60',
- '#default_value' => isset($form_state['values']['body']) ? $form_state['values']['body'] : '',
- '#description' => 'Enter the body of the ad.',
- '#format' => $my_richtext_field['format'],
- '#required' => TRUE,
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement