You are here

function shrinktheweb_get_thumbnail in ShrinkTheWeb 8

Same name and namespace in other branches
  1. 6 shrinktheweb.module \shrinktheweb_get_thumbnail()
  2. 7 shrinktheweb.module \shrinktheweb_get_thumbnail()

Generates or returns the path/source of the thumbnail

@access public

Parameters

string $url The URL of the web page:

array $options Overwrite the options set in admin config:

Return value

mixed Thumbnail path/source or FALSE

7 calls to shrinktheweb_get_thumbnail()
template_preprocess_shrinktheweb_formatter_shrinktheweb_link_default in ./shrinktheweb.module
Displays the thumbnail as '[ShrinkTheWeb] Title as link'.
template_preprocess_shrinktheweb_formatter_shrinktheweb_link_plain in ./shrinktheweb.module
Displays the thumbnail as '[ShrinkTheWeb] URL as plain text'.
template_preprocess_shrinktheweb_formatter_shrinktheweb_link_separate in ./shrinktheweb.module
Displays the thumbnail as '[ShrinkTheWeb] Separate title and URL'.
template_preprocess_shrinktheweb_formatter_shrinktheweb_link_short in ./shrinktheweb.module
Displays the thumbnail as '[ShrinkTheWeb] Short as link with title "Link"'.
template_preprocess_shrinktheweb_formatter_shrinktheweb_link_url in ./shrinktheweb.module
Displays the thumbnail as '[ShrinkTheWeb] URL, as link'.

... See full list

File

./shrinktheweb.module, line 30

Code

function shrinktheweb_get_thumbnail($url, $options = array()) {
  module_load_include('inc', 'shrinktheweb', 'shrinktheweb.api');
  $sImageURL = shrinktheweb_getThumbnailURL($url, $options);
  return $sImageURL;
}