function shrinktheweb_getThumbnailAdvanced in ShrinkTheWeb 8
Same name and namespace in other branches
- 6 shrinktheweb.api.inc \shrinktheweb_getThumbnailAdvanced()
- 7 shrinktheweb.api.inc \shrinktheweb_getThumbnailAdvanced()
Getting the thumbnail with advanced api. !!! SLIGHTLY CHANGED FOR DRUPAL !!!
Parameters
$sUrl:
$aOptions:
Return value
bool|string
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. !!! SLIGHTLY CHANGED FOR DRUPAL !!!
File
- ./
shrinktheweb.api.inc, line 134
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;
}