#82677, hook_taxonomy op='form' does not recieve the edit array., patch by dopry
parent
f8c318a7be
commit
fc0942d43c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue