function theme_shrinktheweb_image in ShrinkTheWeb 7
Same name and namespace in other branches
- 6 shrinktheweb.module \theme_shrinktheweb_image()
Displays the thumbnail.
@access public
Parameters
mixed $url:
array $options.:
Return value
mixed link with the image tag or FALSE on error
9 theme calls to theme_shrinktheweb_image()
- theme_shrinktheweb_formatter_shrinktheweb_link_default in ./
shrinktheweb.module - Theme function for 'default' text field formatter.
- theme_shrinktheweb_formatter_shrinktheweb_link_image in ./
shrinktheweb.module - Theme Screenshot image as link
- theme_shrinktheweb_formatter_shrinktheweb_link_label in ./
shrinktheweb.module - Theme function for 'label' text field formatter.
- theme_shrinktheweb_formatter_shrinktheweb_link_no_text in ./
shrinktheweb.module - Theme function for 'no text' text field formatter.
- theme_shrinktheweb_formatter_shrinktheweb_link_plain in ./
shrinktheweb.module - Theme function for 'plain' text field formatter.
File
- ./
shrinktheweb.module, line 123
Code
function theme_shrinktheweb_image($variables) {
$url = $variables['url'];
$options = $variables['options'];
if ($src = shrinktheweb_get_thumbnail($url)) {
$options['path'] = $src;
$options['attributes'] = !empty($options['attributes']) ? $options['attributes'] : array();
return theme_image($options);
}
return FALSE;
}