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

- Patch #1302986 by stBorchert: added Save and add terms.

parent 8fd2f49c
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
...@@ -222,17 +222,18 @@ function taxonomy_form_vocabulary_submit($form, &$form_state) { ...@@ -222,17 +222,18 @@ function taxonomy_form_vocabulary_submit($form, &$form_state) {
case SAVED_NEW: case SAVED_NEW:
drupal_set_message(t('Created new vocabulary %name.', array('%name' => $vocabulary->name))); drupal_set_message(t('Created new vocabulary %name.', array('%name' => $vocabulary->name)));
watchdog('taxonomy', 'Created new vocabulary %name.', array('%name' => $vocabulary->name), WATCHDOG_NOTICE, l(t('edit'), 'admin/structure/taxonomy/' . $vocabulary->machine_name . '/edit')); watchdog('taxonomy', 'Created new vocabulary %name.', array('%name' => $vocabulary->name), WATCHDOG_NOTICE, l(t('edit'), 'admin/structure/taxonomy/' . $vocabulary->machine_name . '/edit'));
$form_state['redirect'] = 'admin/structure/taxonomy/' . $vocabulary->machine_name;
break; break;
case SAVED_UPDATED: case SAVED_UPDATED:
drupal_set_message(t('Updated vocabulary %name.', array('%name' => $vocabulary->name))); drupal_set_message(t('Updated vocabulary %name.', array('%name' => $vocabulary->name)));
watchdog('taxonomy', 'Updated vocabulary %name.', array('%name' => $vocabulary->name), WATCHDOG_NOTICE, l(t('edit'), 'admin/structure/taxonomy/' . $vocabulary->machine_name . '/edit')); watchdog('taxonomy', 'Updated vocabulary %name.', array('%name' => $vocabulary->name), WATCHDOG_NOTICE, l(t('edit'), 'admin/structure/taxonomy/' . $vocabulary->machine_name . '/edit'));
$form_state['redirect'] = 'admin/structure/taxonomy';
break; break;
} }
$form_state['values']['vid'] = $vocabulary->vid; $form_state['values']['vid'] = $vocabulary->vid;
$form_state['vid'] = $vocabulary->vid; $form_state['vid'] = $vocabulary->vid;
$form_state['redirect'] = 'admin/structure/taxonomy';
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment