You are here

function theme_textimage_image in Textimage 6.2

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

Theme function for displaying textimages

2 calls to theme_textimage_image()
textimage_js_preview in ./textimage.module
textimage_preset_edit in ./textimage_admin.inc
1 theme call to theme_textimage_image()
theme_textimage_formatter in ./textimage.module

File

./textimage.module, line 963

Code

function theme_textimage_image($preset, $text, $additional_text = array(), $format = 'png', $alt = '', $title = '', $attributes = array(), $getsize = TRUE, $image = TRUE) {
  if (!($path = textimage_build_image('theme', $preset, $text, $additional_text, $format))) {
    return FALSE;
  }
  if ($image) {
    return theme('image', $path, $alt, $title, $attributes, $getsize);
  }
  return $path;
}