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;