#82677, hook_taxonomy op='form' does not recieve the edit array., patch by dopry

4.7.x
Gerhard Killesreiter 2006-09-24 12:27:31 +00:00
parent f8c318a7be
commit fc0942d43c
1 changed files with 2 additions and 2 deletions

View File

@ -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;