public static function LingotekSync::getTargetCountByStatus in Lingotek Translation 7.3
Same name and namespace in other branches
- 7.7 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()
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 278 - 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;
}