diff options
author | Dries Buytaert <dries@buytaert.net> | 2007-04-10 11:28:18 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2007-04-10 11:28:18 +0000 |
commit | 8e990d6935e75831f9de436dc773cd104232e475 (patch) | |
tree | 11a12fbb5db86c283b584cf56ee97154a2a1cf0b /modules/taxonomy | |
parent | 704737132f674110bd66cb064876d4af889b42ce (diff) | |
download | brdo-8e990d6935e75831f9de436dc773cd104232e475.tar.gz brdo-8e990d6935e75831f9de436dc773cd104232e475.tar.bz2 |
- Patch #35177 by Stefan and profix898: added some logging to the taxonomy module.
Diffstat (limited to 'modules/taxonomy')
-rw-r--r-- | modules/taxonomy/taxonomy.module | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/modules/taxonomy/taxonomy.module b/modules/taxonomy/taxonomy.module index e82bb0cd0..5cddca6ba 100644 --- a/modules/taxonomy/taxonomy.module +++ b/modules/taxonomy/taxonomy.module @@ -310,9 +310,11 @@ function taxonomy_form_vocabulary_submit($form_id, $form_values) { switch (taxonomy_save_vocabulary($form_values)) { case SAVED_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'])); break; case SAVED_UPDATED: drupal_set_message(t('Updated vocabulary %name.', array('%name' => $form_values['name']))); + watchdog('taxonomy', t('Updated vocabulary %name.', array('%name' => $form_values['name'])), WATCHDOG_NOTICE, l(t('edit'), 'admin/content/taxonomy/edit/vocabulary/'. $form_values['vid'])); break; } @@ -392,6 +394,7 @@ function taxonomy_vocabulary_confirm_delete($vid) { function taxonomy_vocabulary_confirm_delete_submit($form_id, $form_values) { $status = taxonomy_del_vocabulary($form_values['vid']); drupal_set_message(t('Deleted vocabulary %name.', array('%name' => $form_values['name']))); + watchdog('taxonomy', t('Deleted vocabulary %name.', array('%name' => $form_values['name'])), WATCHDOG_NOTICE); return 'admin/content/taxonomy'; } @@ -477,9 +480,11 @@ function taxonomy_form_term_submit($form_id, $form_values) { switch (taxonomy_save_term($form_values)) { case SAVED_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; case SAVED_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) { function taxonomy_term_confirm_delete_submit($form_id, $form_values) { taxonomy_del_term($form_values['tid']); drupal_set_message(t('Deleted term %name.', array('%name' => $form_values['name']))); + watchdog('taxonomy', t('Deleted term %name.', array('%name' => $form_values['name'])), WATCHDOG_NOTICE); return 'admin/content/taxonomy'; } |