You are here

function textimage_path in Textimage 5

Function for creation of text image URLs, automatically replaces spaces with underscores and url encodes for safe use in HTML

1 call to textimage_path()
theme_textimage_image in ./textimage.module
Theme function for displaying text images

File

./textimage.module, line 1251

Code

function textimage_path($preset, $text, $additional_text = array(), $format = 'png') {
  $additional_text = array_reverse($additional_text);
  $path = file_directory_path() . '/textimage/' . $preset . '/' . (empty($additional_text) ? '' : implode('/', $additional_text) . '/') . $text . '.' . $format;
  return drupal_urlencode(str_replace(' ', '_', $path));
}