You are here

public static function LingotekLog::warning in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::warning()
  2. 7.3 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::warning()
  3. 7.5 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::warning()
  4. 7.6 lib/Drupal/lingotek/LingotekLog.php \LingotekLog::warning()
1 call to LingotekLog::warning()
Lingotek::isSupportedLanguage in lib/Drupal/lingotek/Lingotek.php
Returns whether the given language is supported.

File

lib/Drupal/lingotek/LingotekLog.php, line 48
LingotekLog

Class

LingotekLog
Wrapper logging class for watchdog

Code

public static function warning($msg, $data, $tag = '') {
  if (!variable_get('lingotek_warning_log', TRUE)) {
    return;
  }
  self::log($msg, $data, $depth = 1, WATCHDOG_WARNING, $tag);
}