You are here

function theme_shrinktheweb_image_link in ShrinkTheWeb 7

Displays the thumbnail as a link.

@access public

Parameters

mixed $url:

array $options.:

Return value

mixed link with the image tag or FALSE on error

File

./shrinktheweb.module, line 144

Code

function theme_shrinktheweb_image_link($variables) {
  $url = $variables['url'];
  $options = $variables['options'];
  if ($img = theme('shrinktheweb_image', $variables)) {
    $options['html'] = TRUE;
    $options['attributes'] = !empty($options['attributes']) ? $options['attributes'] : array();
    return l($img, $url, $options);
  }
  return FALSE;
}