You are here

function shrinktheweb_refreshThumbnail in ShrinkTheWeb 7

Same name and namespace in other branches
  1. 8 shrinktheweb.api.inc \shrinktheweb_refreshThumbnail()
  2. 6 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 !!! SLIGTHLY CHANGED FOR DRUPAL !!!

File

./shrinktheweb.api.inc, line 96

Code

function shrinktheweb_refreshThumbnail($sUrl, $aOptions = array()) {
  $aOptions = shrinktheweb_generateOptions($aOptions);
  $aOptions['RefreshOnDemand'] = true;
  shrinktheweb_deleteThumbnail($sUrl, $aOptions);
  $sImageURL = shrinktheweb_getThumbnailHTML($sUrl, $aOptions);
  return $sImageURL;
}