function watchdog_rules_watchdog in Logging and alerts 7
Same name and namespace in other branches
- 6.2 watchdog_rules/watchdog_rules.module \watchdog_rules_watchdog()
- 6 watchdog_rules/watchdog_rules.module \watchdog_rules_watchdog()
- 7.2 watchdog_rules/watchdog_rules.module \watchdog_rules_watchdog()
Implements hook_watchdog().
File
- watchdog_rules/
watchdog_rules.module, line 12 - Provides a Rules integration for wachdog events.
Code
function watchdog_rules_watchdog($watchdog_message) {
rules_invoke_event('watchdog_rules', $watchdog_message['user'], $watchdog_message['type'], $watchdog_message['request_uri'], $watchdog_message['referer'], $watchdog_message['ip'], $watchdog_message['timestamp'], $watchdog_message['severity'], $watchdog_message['link'], $watchdog_message['message']);
}