theme_image($variables)Return a themed image.
$variables An associative array containing:
A string containing the image tag.
includes/theme.inc, line 1515
<?php
function theme_image($variables) {
$path = $variables['path'];
$alt = $variables['alt'];
$title = $variables['title'];
$attributes = $variables['attributes'];
$getsize = $variables['getsize'];
if (!$getsize || (is_file($path) && (list($width, $height, $type, $image_attributes) = @getimagesize($path)))) {
$attributes = drupal_attributes($attributes);
$url = file_create_url($path);
return '<img src="' . check_url($url) . '" alt="' . check_plain($alt) . '" title="' . check_plain($title) . '" ' . (isset($image_attributes) ? $image_attributes : '') . $attributes . ' />';
}
}
?>