You are here

function _system_charts_watchdog_severity_label in Google Chart Tools: Image Charts 7

Same name and namespace in other branches
  1. 5 contrib/system_charts/system_charts.module \_system_charts_watchdog_severity_label()
  2. 6 contrib/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 system_charts/system_charts.module
Gather data and build a chart API structure.

File

system_charts/system_charts.module, line 346
Provides primary Drupal hook 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;
  }
}