summaryrefslogtreecommitdiff
path: root/modules/system/system.api.php
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2012-05-25 00:33:31 -0400
committerDavid Rothstein <drothstein@gmail.com>2012-05-25 00:33:31 -0400
commit4c6faf1d951a79d37e18d18801ce55d5f0e2e329 (patch)
treedde5ba2ff60897d05d37b6084eb98f41e7676a46 /modules/system/system.api.php
parent57b8f4726866ce11bf05b50f5e2a19a2fe290ba0 (diff)
downloadbrdo-4c6faf1d951a79d37e18d18801ce55d5f0e2e329.tar.gz
brdo-4c6faf1d951a79d37e18d18801ce55d5f0e2e329.tar.bz2
Issue #598586 followup by tim.plunkett: Added documentation of 'uid' parameter in hook_watchdog().
Diffstat (limited to 'modules/system/system.api.php')
-rw-r--r--modules/system/system.api.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/system/system.api.php b/modules/system/system.api.php
index c551e229b..3897a74f9 100644
--- a/modules/system/system.api.php
+++ b/modules/system/system.api.php
@@ -2344,6 +2344,7 @@ function hook_xmlrpc_alter(&$methods) {
* - type: The type of message for this entry.
* - user: The user object for the user who was logged in when the event
* happened.
+ * - uid: The user ID for the user who was logged in when the event happened.
* - request_uri: The request URI for the page the event happened in.
* - referer: The page that referred the user to the page where the event
* occurred.
@@ -2410,7 +2411,7 @@ function hook_watchdog(array $log_entry) {
'@ip' => $log_entry['ip'],
'@request_uri' => $log_entry['request_uri'],
'@referer_uri' => $log_entry['referer'],
- '@uid' => $log_entry['user']->uid,
+ '@uid' => $log_entry['uid'],
'@name' => $log_entry['user']->name,
'@link' => strip_tags($log_entry['link']),
'@message' => strip_tags($log_entry['message']),