You are here

function theme_textimage_image in Textimage 5

Same name and namespace in other branches
  1. 5.2 textimage.module \theme_textimage_image()
  2. 6.2 textimage.module \theme_textimage_image()
  3. 7.2 textimage.module \theme_textimage_image()

Theme function for displaying text images

File

./textimage.module, line 1260

Code

function theme_textimage_image($preset, $text, $additional_text = array(), $format = 'png', $alt = '', $title = '', $attributes = array(), $getsize = TRUE) {
  $path = textimage_path($preset, $text, $additional_text, $format);
  if ($getsize && is_file($path)) {
    list($width, $height, $type, $image_attributes) = @getimagesize($path);
  }
  $attributes = drupal_attributes($attributes);
  return '<img src="' . check_url(base_path() . $path) . '" alt="' . check_plain($alt) . '" title="' . check_plain($title) . '" ' . $image_attributes . $attributes . ' />';
}