You are here

function shrinktheweb_getThumbnailURL in ShrinkTheWeb 8

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

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 !!!

Parameters

$sUrl:

array $aOptions:

Return value

bool|string

1 call to shrinktheweb_getThumbnailURL()
shrinktheweb_get_thumbnail in ./shrinktheweb.module
Generates or returns the path/source of the thumbnail

File

./shrinktheweb.api.inc, line 50

Code

function shrinktheweb_getThumbnailURL($sUrl, $aOptions = array()) {
  $sImageURL = FALSE;
  $aOptions = shrinktheweb_generateOptions($aOptions);
  $sImageURL = shrinktheweb_getThumbnailAdvanced($sUrl, $aOptions);
  return $sImageURL;
}