You are here

function views_watchdog_get_severity_list in Views Watchdog 7.4

Helper function to retrieve list of types.

1 string reference to 'views_watchdog_get_severity_list'
views_watchdog_views_data in views/views_watchdog.views.inc
Implements of hook_views_data().

File

./views_watchdog.module, line 49
Extends the Views module and allows to create custom lists of log entries.

Code

function views_watchdog_get_severity_list() {
  return array(
    WATCHDOG_EMERGENCY => 'emergency',
    WATCHDOG_ALERT => 'alert',
    WATCHDOG_CRITICAL => 'critical',
    WATCHDOG_ERROR => 'error',
    WATCHDOG_WARNING => 'warning',
    WATCHDOG_NOTICE => 'notice',
    WATCHDOG_INFO => 'info',
    WATCHDOG_DEBUG => 'debug',
  );
}