diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-11-28 13:15:31 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-11-28 13:15:31 +0000 |
commit | 7ddfac434a8cf4db73dd4674c7c943db590f1d15 (patch) | |
tree | 20dbf69fb0a1770575e7a91a348756f833d15691 | |
parent | d172bad5590136a6aafd2eb4128e6917434676c9 (diff) | |
download | brdo-7ddfac434a8cf4db73dd4674c7c943db590f1d15.tar.gz brdo-7ddfac434a8cf4db73dd4674c7c943db590f1d15.tar.bz2 |
- Patch #99694 by bdragon: removed dead code.
-rw-r--r-- | modules/taxonomy/taxonomy.module | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 17025b031..e12b187eb 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -384,17 +384,6 @@ function taxonomy_form_term($vocabulary_id, $edit = array()) { $form['synonyms'] = array('#type' => 'textarea', '#title' => t('Synonyms'), '#default_value' => implode("\n", taxonomy_get_synonyms($edit['tid'])), '#description' => t('<a href="@help-url">Synonyms</a> of this term, one synonym per line.', array('@help-url' => url('admin/help/taxonomy', NULL, NULL, 'synonyms')))); $form['weight'] = array('#type' => 'weight', '#title' => t('Weight'), '#default_value' => $edit['weight'], '#description' => t('In listings, the heavier terms will sink and the lighter terms will be positioned nearer the top.')); - - // Add extra term form elements. - $extra = module_invoke_all('taxonomy', 'term', 'vocabulary'); - if (is_array($extra)) { - foreach ($extra as $key => $element) { - $extra[$key]['#weight'] = isset($extra[$key]['#weight']) ? $extra[$key]['#weight'] : -18; - } - $form = array_merge($form, $extra); - } - - $form['vid'] = array('#type' => 'value', '#value' => $vocabulary->vid); $form['submit'] = array('#type' => 'submit', '#value' => t('Submit')); |