Skip to content
Snippets Groups Projects
Commit 91942614 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #62362 by Moshe: kill the 'form' operation of hook_taxonomy.

parent 1fd2c6e1
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -254,15 +254,6 @@ function taxonomy_form_vocabulary($edit = array()) {
'#description' => t('In listings, the heavier vocabularies will sink and the lighter vocabularies will be positioned nearer the top.'),
);
// Add extra vocabulary form elements.
$extra = module_invoke_all('taxonomy', 'form', 'vocabulary');
if (is_array($extra)) {
foreach ($extra as $key => $element) {
$extra[$key]['#weight'] = isset($extra[$key]['#weight']) ? $extra[$key]['#weight'] : -18;
}
$form = array_merge($form, $extra);
}
$form['submit'] = array('#type' => 'submit', '#value' => t('Submit'));
if ($edit['vid']) {
$form['delete'] = array('#type' => 'submit', '#value' => t('Delete'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment