diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-07 14:18:07 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-11-07 14:18:07 +0000 |
commit | 9e373e76f912615f675301838680c6b47795e499 (patch) | |
tree | b5240a79961adfac4cbc5a6cc29f6c6433e6fbe2 /modules/taxonomy/taxonomy.admin.inc | |
parent | 35ff7005f4bb751e19509a3d9887d2fc455fada9 (diff) | |
download | brdo-9e373e76f912615f675301838680c6b47795e499.tar.gz brdo-9e373e76f912615f675301838680c6b47795e499.tar.bz2 |
#625460 by sun: Add input format to taxonomy term descriptions.
Diffstat (limited to 'modules/taxonomy/taxonomy.admin.inc')
-rw-r--r-- | modules/taxonomy/taxonomy.admin.inc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc index f3550464f..cf5ece294 100644 --- a/modules/taxonomy/taxonomy.admin.inc +++ b/modules/taxonomy/taxonomy.admin.inc @@ -614,6 +614,7 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary = $edit += array( 'name' => '', 'description' => '', + 'format' => filter_default_format(), 'vocabulary_machine_name' => $vocabulary->machine_name, 'tid' => NULL, 'weight' => 0, @@ -653,7 +654,9 @@ function taxonomy_form_term($form, &$form_state, $edit = array(), $vocabulary = '#type' => 'textarea', '#title' => t('Description'), '#default_value' => $edit['description'], - '#description' => t('A description of the term. To be displayed on taxonomy/term pages and RSS feeds.')); + '#description' => t('A description of the term. To be displayed on taxonomy/term pages and RSS feeds.'), + '#text_format' => $edit['format'], + ); $form['vocabulary_machine_name'] = array( '#type' => 'textfield', @@ -768,6 +771,10 @@ function taxonomy_form_term_submit($form, &$form_state) { return; } + // Massage #text_format. + $form_state['values']['format'] = $form_state['values']['description_format']; + unset($form_state['values']['description_format']); + $term = taxonomy_form_term_submit_builder($form, $form_state); $status = taxonomy_term_save($term); |