diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-05-12 18:08:43 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-05-12 18:08:43 +0000 |
commit | a07e17a92c8dd67da010ce6ff7ede1cb575f577b (patch) | |
tree | 93806eeca614d1cb31c5ce1a5a2fc261b9e83539 /includes | |
parent | 83ea3cd0424e8b7b3972e5e5c1edbae7af52fd37 (diff) | |
download | brdo-a07e17a92c8dd67da010ce6ff7ede1cb575f577b.tar.gz brdo-a07e17a92c8dd67da010ce6ff7ede1cb575f577b.tar.bz2 |
- Patch #210876 by deekayen: log enabling and disabling of modules, and wrote a handy assertLogMessage() function to assert watchdog messages.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/bootstrap.inc | 10 | ||||
-rw-r--r-- | includes/install.inc | 1 | ||||
-rw-r--r-- | includes/module.inc | 2 |
3 files changed, 9 insertions, 4 deletions
diff --git a/includes/bootstrap.inc b/includes/bootstrap.inc index 589582498..590f1ba35 100644 --- a/includes/bootstrap.inc +++ b/includes/bootstrap.inc @@ -1097,15 +1097,17 @@ function request_uri() { * @param $type * The category to which this message belongs. * @param $message - * The message to store in the log. See t() for documentation - * on how $message and $variables interact. Keep $message - * translatable by not concatenating dynamic values into it! + * The message to store in the log. Keep $message translatable + * by not concatenating dynamic values into it! Variables in the + * message should be added by using placeholder strings alongside + * the variables argument to declare the value of the placeholders. + * See t() for documentation on how $message and $variables interact. * @param $variables * Array of variables to replace in the message on display or * NULL if message is already translated or not possible to * translate. * @param $severity - * The severity of the message, as per RFC 3164 + * The severity of the message, as per RFC 3164. * @param $link * A link to associate with the message. * diff --git a/includes/install.inc b/includes/install.inc index 2af751c5b..b3358f285 100644 --- a/includes/install.inc +++ b/includes/install.inc @@ -610,6 +610,7 @@ function drupal_uninstall_modules($module_list = array()) { // Uninstall the module. module_load_install($module); module_invoke($module, 'uninstall'); + watchdog('system', '%module module uninstalled.', array('%module' => $module), WATCHDOG_INFO); // Now remove the menu links for all paths declared by this module. if (!empty($paths)) { diff --git a/includes/module.inc b/includes/module.inc index dbe51279b..2e00088eb 100644 --- a/includes/module.inc +++ b/includes/module.inc @@ -258,6 +258,7 @@ function module_enable($module_list) { ->execute(); drupal_load('module', $module); $invoke_modules[] = $module; + watchdog('system', '%module module enabled.', array('%module' => $module), WATCHDOG_INFO); } } @@ -309,6 +310,7 @@ function module_disable($module_list) { ->condition('name', $module) ->execute(); $invoke_modules[] = $module; + watchdog('system', '%module module disabled.', array('%module' => $module), WATCHDOG_INFO); } } |