public static function LingotekSync::getTargetCountByStatus in Lingotek Translation 7.7
Same name and namespace in other branches
- 7.3 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetCountByStatus()
- 7.4 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetCountByStatus()
- 7.5 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetCountByStatus()
- 7.6 lib/Drupal/lingotek/LingotekSync.php \LingotekSync::getTargetCountByStatus()
File
- lib/
Drupal/ lingotek/ LingotekSync.php, line 616 - 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;
}