You are here

function requestThumbnailsRefreshFinished in ShrinkTheWeb 8

Request refresh batch finish callback.

1 string reference to 'requestThumbnailsRefreshFinished'
ShrinkTheWebSettingsForm::_submitForm in src/Form/ShrinkTheWebSettingsForm.php
Realize form checkbox handlers.

File

src/RefreshThumbnailsBatch.inc, line 16

Code

function requestThumbnailsRefreshFinished($success, $results, $operations) {
  if ($success) {
    drupal_set_message('Thumbnails for ' . count($results) . ' domains requested to be refreshed');
  }
  else {
    drupal_set_message('An error has occurred.', 'error');
  }
}