You are here

function watchdog_rules_token_list in Logging and alerts 6.2

Same name and namespace in other branches
  1. 6 watchdog_rules/watchdog_rules.module \watchdog_rules_token_list()

Implementation of hook_token_list().

File

watchdog_rules/watchdog_rules.module, line 18
Provides a Rules integration for wachdog events.

Code

function watchdog_rules_token_list($type = 'all') {
  if ($type == 'watchdog' || $type == 'all') {
    $tokens['watchdog_rules'] = array(
      'type' => t('The type of the watchdog event.'),
      'request_uri' => t('The request URI for the page the event happened in.'),
      'referer' => t('The page that referred the user to the page where the event occurred.'),
      'ip' => t('The IP address where the request for the page came from.'),
      'timestamp' => t('The UNIX timetamp of the date/time the event occurred.'),
      'severity' => t('The degree of severity of the event.'),
      'link' => t('An informational link provided by the module calling watchdog.'),
      'message' => t('The text of the message to be logged.'),
    );
    return $tokens;
  }
}