You are here

function advagg_admin_refresh_locale_files_button in Advanced CSS/JS Aggregation 7.2

Delete orphaned/expired advagg locks from the semaphore database table.

Related topics

1 string reference to 'advagg_admin_refresh_locale_files_button'
advagg_admin_operations_form in ./advagg.admin.inc
Form builder; Do advagg operations.

File

./advagg.admin.inc, line 1835
Admin page callbacks for the advanced CSS/JS aggregation module.

Code

function advagg_admin_refresh_locale_files_button() {
  module_load_include('inc', 'advagg', 'advagg.cache');

  // Refresh all locale files.
  $locale_files = advagg_refresh_all_locale_files();
  if (empty($locale_files)) {
    drupal_set_message(t('No locale files are being used.'));
  }
  else {
    drupal_set_message(t('The following locale files are being used: <pre>@files</pre>', array(
      '@files' => print_r($locale_files, TRUE),
    )));
  }
}