You are here

function template_preprocess_shrinktheweb_image in ShrinkTheWeb 8

Displays the thumbnail, also used for '[ShrinkTheWeb] No link text'

Parameters

array $variables:

File

./shrinktheweb.module, line 141

Code

function template_preprocess_shrinktheweb_image(&$variables) {
  $options = _shrinktheweb_custom_settings($variables);
  if ($src = shrinktheweb_get_thumbnail($variables['url'], $options)) {
    $variables['image_path'] = $src;
  }
}