Index: rules/rules/modules/system.rules.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/rules/rules/modules/Attic/system.rules.inc,v retrieving revision 1.1.2.16 diff -u -r1.1.2.16 system.rules.inc --- rules/rules/modules/system.rules.inc 18 May 2009 12:27:06 -0000 1.1.2.16 +++ rules/rules/modules/system.rules.inc 4 Jul 2009 21:34:14 -0000 @@ -24,6 +24,11 @@ 'module' => 'System', 'arguments' => rules_events_global_user_argument(), ), + 'watchdog' => array( + 'label' => t('On Watchdog log entry'), + 'module' => 'System', + 'arguments' => rules_events_watchdog_argument(), + ), ); } @@ -217,5 +222,44 @@ } /** + * Arguments for watchdog event + */ +function rules_events_watchdog_argument() { + return array( + 'message' => array( + 'type' => 'string', + 'label' => 'Log Message', + ), + 'loguser' => array( + 'type' => 'user', + 'label' => 'Log User', + ), + 'severity' => array( + 'type' => 'string', + 'label' => 'Log Severity', + ), + 'referrer' => array( + 'type' => 'string', + 'label' => 'Log Referrer', + ), + 'ip' => array( + 'type' => 'string', + 'label' => 'Log IP Address', + ), + 'time' => array( + 'type' => 'string', + 'label' => 'Log timestamp', + ), + 'link' => array( + 'type' => 'string', + 'label' => 'Log link', + ), + + ); +} + + + +/** * @} */