You are here

function watchdog_rules_rules_event_info in Logging and alerts 6

Same name and namespace in other branches
  1. 6.2 watchdog_rules/watchdog_rules.rules.inc \watchdog_rules_rules_event_info()
  2. 7.2 watchdog_rules/watchdog_rules.rules.inc \watchdog_rules_rules_event_info()
  3. 7 watchdog_rules/watchdog_rules.rules.inc \watchdog_rules_rules_event_info()

Implementation of hook_rules_event_info().

Register rules events used by this module.

File

watchdog_rules/watchdog_rules.rules.inc, line 13
Provides a Rules integration for watchdog events.

Code

function watchdog_rules_rules_event_info() {
  return array(
    'watchdog_rules' => array(
      'label' => t('Watchdog logs an event'),
      'module' => 'Watchdog Rules',
      'arguments' => array(
        'watchdog_user' => array(
          'type' => 'user',
          'label' => t('The logged in user when watchdog was called'),
        ),
        'watchdog_message' => array(
          'type' => 'watchdog',
          'label' => t('The watchdog log message'),
        ),
      ),
    ),
  );
}