You are here

function watchdog_rules_watchdog in Logging and alerts 7

Same name and namespace in other branches
  1. 6.2 watchdog_rules/watchdog_rules.module \watchdog_rules_watchdog()
  2. 6 watchdog_rules/watchdog_rules.module \watchdog_rules_watchdog()
  3. 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']);
}