function watchdog_rules_rules_event_info in Logging and alerts 7
Same name and namespace in other branches
- 6.2 watchdog_rules/watchdog_rules.rules.inc \watchdog_rules_rules_event_info()
- 6 watchdog_rules/watchdog_rules.rules.inc \watchdog_rules_rules_event_info()
- 7.2 watchdog_rules/watchdog_rules.rules.inc \watchdog_rules_rules_event_info()
Implements hook_rules_event_info().
Register rules events used by this module.
File
- watchdog_rules/
watchdog_rules.rules.inc, line 14 - Provides a Rules integration for watchdog events.
Code
function watchdog_rules_rules_event_info() {
$defaults = array(
'group' => t('Watchdog'),
'module' => 'watchdog_rules',
);
return array(
'watchdog_rules' => $defaults + array(
'label' => t('Watchdog logs an event'),
'variables' => array(
'watchdog_user' => array(
'type' => 'user',
'label' => t('The logged in user when watchdog was called'),
),
'watchdog_type' => array(
'type' => 'text',
'label' => t('The watchdog log type'),
),
'watchdog_request_uri' => array(
'type' => 'text',
'label' => t('The watchdog log request URI'),
),
'watchdog_referer' => array(
'type' => 'text',
'label' => t('The watchdog log referer'),
),
'watchdog_ip' => array(
'type' => 'text',
'label' => t('The watchdog log ip'),
),
'watchdog_timestamp' => array(
'type' => 'text',
'label' => t('The watchdog log timestamp'),
),
'watchdog_severity' => array(
'type' => 'text',
'label' => t('The watchdog log severity'),
),
'watchdog_link' => array(
'type' => 'text',
'label' => t('The watchdog log link'),
),
'watchdog_message' => array(
'type' => 'text',
'label' => t('The watchdog log message'),
),
),
),
);
}