function _rules_system_watchdog_log_entry_info

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

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'),
        ),
    );
}