You are here

function _charts_system_watchdog_severity_label in Charts 7

Same name and namespace in other branches
  1. 6 charts_system/charts_system.inc \_charts_system_watchdog_severity_label()

Translate the message severity label code to a string

Parameters

status: Number. According to watchdog constants, the severity level

Return value

String. The given severity

1 string reference to '_charts_system_watchdog_severity_label'
_charts_system_charts in charts_system/charts_system.inc
Chart reports page

File

charts_system/charts_system.inc, line 200
@author Bruno Massa http://drupal.org/user/67164 @author TJ (based on his Chart module)

Code

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