You are here

function _rules_system_watchdog_log_entry_info in Rules 7.2

Defines property info for watchdog log entries.

Used by the log entry data type to provide a useful metadata wrapper.

Related topics

1 call to _rules_system_watchdog_log_entry_info()
rules_system_data_info in modules/system.rules.inc
Implements hook_rules_data_info() on behalf of the system module.

File

modules/system.rules.inc, line 69
Rules integration for the system module.

Code

function _rules_system_watchdog_log_entry_info() {
  return array(
    'type' => array(
      'type' => 'text',
      'label' => t('The category to which this message belongs'),
    ),
    'message' => array(
      'type' => 'text',
      'label' => t('Log message'),
      'getter callback' => 'rules_system_log_get_message',
      'sanitized' => TRUE,
    ),
    'severity' => array(
      'type' => 'integer',
      'label' => t('Severity'),
      'options list' => 'watchdog_severity_levels',
    ),
    'request_uri' => array(
      'type' => 'uri',
      'label' => t('Request uri'),
    ),
    'link' => array(
      'type' => 'text',
      'label' => t('An associated, HTML formatted link'),
    ),
  );
}