From fc0942d43cf093df7940204fac14ce1a26fbf516 Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter Date: Sun, 24 Sep 2006 12:27:31 +0000 Subject: [PATCH] #82677, hook_taxonomy op='form' does not recieve the edit array., patch by dopry --- modules/taxonomy.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/taxonomy.module b/modules/taxonomy.module index 9871cf03be3..78f3522647e 100644 --- a/modules/taxonomy.module +++ b/modules/taxonomy.module @@ -243,7 +243,7 @@ function taxonomy_form_vocabulary($edit = array()) { ); // Add extra vocabulary form elements. - $extra = module_invoke_all('taxonomy', 'form', 'vocabulary'); + $extra = module_invoke_all('taxonomy', 'form', 'vocabulary', $edit); if (is_array($extra)) { foreach ($extra as $key => $element) { $extra[$key]['#weight'] = isset($extra[$key]['#weight']) ? $extra[$key]['#weight'] : -18; @@ -378,7 +378,7 @@ function taxonomy_form_term($edit = array()) { $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', 'form', 'term'); + $extra = module_invoke_all('taxonomy', 'form', 'term', $edit); if (is_array($extra)) { foreach ($extra as $key => $element) { $extra[$key]['#weight'] = isset($extra[$key]['#weight']) ? $extra[$key]['#weight'] : -18;