You are here

function _system_charts_watchdog_severity_label in Google Chart Tools: Image Charts 6

Same name and namespace in other branches
  1. 5 contrib/system_charts/system_charts.module \_system_charts_watchdog_severity_label()
  2. 7 system_charts/system_charts.module \_system_charts_watchdog_severity_label()

Return the watchdog severity label

1 call to _system_charts_watchdog_severity_label()
system_charts_build in contrib/system_charts/system_charts.module
Gather data and build a chart API structure.

File

contrib/system_charts/system_charts.module, line 341
Provides core Drupal chart implementations.

Code

function _system_charts_watchdog_severity_label($severity) {
  switch ($severity) {
    case WATCHDOG_NOTICE:
      return t('Notice');
      break;
    case WATCHDOG_WARNING:
      return t('Warning');
      break;
    case WATCHDOG_ERROR:
      return t('Error');
      break;
  }
}