You are here

public static function LingotekSync::getTargetCountByStatus in Lingotek Translation 7.4

Same name and namespace in other branches
  1. 7.7 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetCountByStatus()
  2. 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetCountByStatus()
  3. 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetCountByStatus()
  4. 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetCountByStatus()
1 call to LingotekSync::getTargetCountByStatus()
lingotek_get_target_status in ./lingotek.dashboard.inc
Get the status of the target given by locale

File

lib/Drupal/lingotek/LingotekSync.php, line 442
LingotekSync

Class

LingotekSync
A utility class for Lingotek Syncing.

Code

public static function getTargetCountByStatus($status, $lingotek_locale) {
  $count = 0;

  // get the count of nodes
  $count += self::getTargetNodeCountByStatus($status, $lingotek_locale);

  // get the count of config chunks (turned off for now)

  /*
      if (variable_get('lingotek_translate_config', 0)) {
   $count += self::getTargetChunkCountByStatus($status, $lingotek_locale);
      }
  */
  return $count;
}