diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-04-15 13:48:03 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-04-15 13:48:03 +0000 |
commit | a41bd361c284cbf941aef6e6e4764bc2b3c774b7 (patch) | |
tree | 00c2fc075a812ebfba8c917f90b3883cdc591ba7 /modules | |
parent | b0a6099918f7e8631647575432ff133a4c111a8e (diff) | |
download | brdo-a41bd361c284cbf941aef6e6e4764bc2b3c774b7.tar.gz brdo-a41bd361c284cbf941aef6e6e4764bc2b3c774b7.tar.bz2 |
- Patch #431130 by alienbrain: removed unused arguments in internal taxonomy functions.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/taxonomy/taxonomy.admin.inc | 4 | ||||
-rw-r--r-- | modules/taxonomy/taxonomy.module | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/modules/taxonomy/taxonomy.admin.inc b/modules/taxonomy/taxonomy.admin.inc index eb580c4d2..fdb96f68c 100644 --- a/modules/taxonomy/taxonomy.admin.inc +++ b/modules/taxonomy/taxonomy.admin.inc @@ -672,8 +672,8 @@ function taxonomy_form_term(&$form_state, $vocabulary, $edit = array()) { } $exclude[] = $edit['tid']; - $form['advanced']['parent'] = _taxonomy_term_select(t('Parents'), 'parent', $parent, $vocabulary->vid, t('Parent terms') . '.', 1, '<' . t('root') . '>', $exclude); - $form['advanced']['relations'] = _taxonomy_term_select(t('Related terms'), 'relations', array_keys(taxonomy_get_related($edit['tid'])), $vocabulary->vid, NULL, 1, '<' . t('none') . '>', array($edit['tid'])); + $form['advanced']['parent'] = _taxonomy_term_select(t('Parents'), $parent, $vocabulary->vid, t('Parent terms') . '.', 1, '<' . t('root') . '>', $exclude); + $form['advanced']['relations'] = _taxonomy_term_select(t('Related terms'), array_keys(taxonomy_get_related($edit['tid'])), $vocabulary->vid, NULL, 1, '<' . t('none') . '>', array($edit['tid'])); } $form['advanced']['synonyms'] = array( '#type' => 'textarea', diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index 56c207895..8f1f3b047 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -426,7 +426,7 @@ function taxonomy_terms_static_reset() { /** * Generate a form element for selecting terms from a vocabulary. */ -function taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') { +function taxonomy_form($vid, $value = 0, $help = NULL) { $vocabulary = taxonomy_vocabulary_load($vid); $help = ($help) ? $help : $vocabulary->help; @@ -437,7 +437,7 @@ function taxonomy_form($vid, $value = 0, $help = NULL, $name = 'taxonomy') { $blank = ($vocabulary->required) ? 0 : t('- None -'); } - return _taxonomy_term_select(check_plain($vocabulary->name), $name, $value, $vid, $help, intval($vocabulary->multiple), $blank); + return _taxonomy_term_select(check_plain($vocabulary->name), $value, $vid, $help, intval($vocabulary->multiple), $blank); } /** @@ -1234,7 +1234,7 @@ function taxonomy_get_term_data($tid) { return $terms[$tid]; } -function _taxonomy_term_select($title, $name, $value, $vocabulary_id, $description, $multiple, $blank, $exclude = array()) { +function _taxonomy_term_select($title, $value, $vocabulary_id, $description, $multiple, $blank, $exclude = array()) { $tree = taxonomy_get_tree($vocabulary_id); $options = array(); |