You are here

function shrinktheweb_getThumbnailAdvanced in ShrinkTheWeb 7

Same name and namespace in other branches
  1. 8 shrinktheweb.api.inc \shrinktheweb_getThumbnailAdvanced()
  2. 6 shrinktheweb.api.inc \shrinktheweb_getThumbnailAdvanced()
1 call to shrinktheweb_getThumbnailAdvanced()
shrinktheweb_getThumbnailURL in ./shrinktheweb.api.inc
Gets the thumbnail for the specified website, stores it in the cache, and then returns the HTML for loading the image. !!! SLIGTHLY CHANGED FOR DRUPAL !!!

File

./shrinktheweb.api.inc, line 112

Code

function shrinktheweb_getThumbnailAdvanced($sUrl, $aOptions) {
  $sImageUrl = shrinktheweb_getThumbnail($sUrl, $aOptions);

  // if WAY OVER the limits (i.e. request is ignored by STW), grab an "Account Problem" image and store it as NO_RESPONSE_IMAGE
  if ($sImageUrl == 'no_response') {
    $sImageUrl = shrinktheweb_getNoResponseImage($sUrl, $aOptions);
  }
  return $sImageUrl;
}