function theme_image_resize_filter_image in Image Resize Filter 7
Same name and namespace in other branches
- 6 image_resize_filter.module \theme_image_resize_filter_image()
Generate a themed image tag based on an image array.
Parameters
$image: An array containing image information and properties.
$settings: Settings for the input filter.
1 theme call to theme_image_resize_filter_image()
- image_resize_filter_image_tag in ./
image_resize_filter.module - Generate a themed image tag based on an image array.
File
- ./
image_resize_filter.module, line 615 - After adding to a text format, this filter will parse the contents of submitted content and automatically scale image files to match the set dimensions of img tags.
Code
function theme_image_resize_filter_image($variables) {
$image = $variables['image'];
$output = '<img' . drupal_attributes($image['attributes']) . ' />';
if ($image['link']) {
$output = '<a' . drupal_attributes($image['link']['attributes']) . '>' . $output . '</a>';
}
return $output;
}