Same name in other branches
- 7.x-2.x advagg.module \advagg_get_global_counter()
Return the global_counter variable.
Return value
int Int value.
3 calls to advagg_get_global_counter()
- advagg_drush_help in ./
advagg.drush.inc - Implements hook_drush_help().
- InitSubscriber::onEvent in advagg_mod/
src/ EventSubscriber/ InitSubscriber.php - Synchronize global_counter variable between sites.
- OperationsForm::buildForm in src/
Form/ OperationsForm.php
File
-
./
advagg.module, line 553
Code
function advagg_get_global_counter() {
$counter =& drupal_static(__FUNCTION__);
if (!$counter) {
$counter = \Drupal::config('advagg.settings')->get('global_counter');
if ($counter === NULL) {
$counter = 0;
}
}
return $counter;
}