You are here

function requestThumbnailsRefresh in ShrinkTheWeb 8

Request refresh batch process callback.

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

File

src/RefreshThumbnailsBatch.inc, line 6

Code

function requestThumbnailsRefresh($url, &$context) {
  $context['results'][] = $url;
  module_load_include('inc', 'shrinktheweb', 'shrinktheweb.api');
  shrinktheweb_refreshThumbnail($url, $aOptions = array());
  $context['message'] = 'Refresh for thumbnail for domain <em>' . $url . '</em> was requested';
}