drupal_set_message(t('Created new term %term.',array('%term'=>$form_state['values']['name'])));
watchdog('taxonomy','Created new term %term.',array('%term'=>$form_state['values']['name']),WATCHDOG_NOTICE,l(t('edit'),'taxonomy/term/'.$form_state['values']['tid'].'/edit'));
drupal_set_message(t('Created new term %term.',array('%term'=>$term->name)));
watchdog('taxonomy','Created new term %term.',array('%term'=>$term->name),WATCHDOG_NOTICE,l(t('edit'),'taxonomy/term/'.$term->tid.'/edit'));
break;
caseSAVED_UPDATED:
drupal_set_message(t('Updated term %term.',array('%term'=>$form_state['values']['name'])));
watchdog('taxonomy','Updated term %term.',array('%term'=>$form_state['values']['name']),WATCHDOG_NOTICE,l(t('edit'),'taxonomy/term/'.$form_state['values']['tid'].'/edit'));
drupal_set_message(t('Updated term %term.',array('%term'=>$term->name)));
watchdog('taxonomy','Updated term %term.',array('%term'=>$term->name),WATCHDOG_NOTICE,l(t('edit'),'taxonomy/term/'.$term->tid.'/edit'));
break;
}
...
...
@@ -782,7 +783,7 @@ function taxonomy_form_term_submit($form, &$form_state) {