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
@@ -310,9 +310,11 @@ function taxonomy_form_vocabulary_submit($form_id, $form_values) {
switch(taxonomy_save_vocabulary($form_values)){
caseSAVED_NEW:
drupal_set_message(t('Created new vocabulary %name.',array('%name'=>$form_values['name'])));
watchdog('taxonomy',t('Created new vocabulary %name.',array('%name'=>$form_values['name'])),WATCHDOG_NOTICE,l(t('edit'),'admin/content/taxonomy/edit/vocabulary/'.$form_values['vid']));
@@ -477,9 +480,11 @@ function taxonomy_form_term_submit($form_id, $form_values) {
switch(taxonomy_save_term($form_values)){
caseSAVED_NEW:
drupal_set_message(t('Created new term %term.',array('%term'=>$form_values['name'])));
watchdog('taxonomy',t('Created new term %term.',array('%term'=>$form_values['name'])),WATCHDOG_NOTICE,l(t('edit'),'admin/content/taxonomy/edit/term/'.$form_values['tid']));
break;
caseSAVED_UPDATED:
drupal_set_message(t('The term %term has been updated.',array('%term'=>$form_values['name'])));
drupal_set_message(t('Updated term %term.',array('%term'=>$form_values['name'])));
watchdog('taxonomy',t('Updated term %term.',array('%term'=>$form_values['name'])),WATCHDOG_NOTICE,l(t('edit'),'admin/content/taxonomy/edit/term/'.$form_values['tid']));
break;
}
return'admin/content/taxonomy';
...
...
@@ -621,6 +626,7 @@ function taxonomy_term_confirm_delete($tid) {