You are here

function shrinktheweb_refreshThumbnail in ShrinkTheWeb 8

Same name and namespace in other branches
  1. 6 shrinktheweb.api.inc \shrinktheweb_refreshThumbnail()
  2. 7 shrinktheweb.api.inc \shrinktheweb_refreshThumbnail()

Refresh a thumbnail for a url with specified options. First delete it and then do a new request and return the HTML for image loading. !!! SLIGHTLY CHANGED FOR DRUPAL !!!

Parameters

$thumbnail:

array $aOptions:

1 call to shrinktheweb_refreshThumbnail()
requestThumbnailsRefresh in src/RefreshThumbnailsBatch.inc
Request refresh batch process callback.

File

./shrinktheweb.api.inc, line 115

Code

function shrinktheweb_refreshThumbnail($url, $aOptions = array()) {
  $aOptions = shrinktheweb_generateOptions($aOptions);
  $aOptions['RefreshOnDemand'] = TRUE;
  shrinktheweb_deleteThumbnail($url, $aOptions);
  shrinktheweb_getThumbnail($url, $aOptions);
}