You are here

function textimage_build_preview in Textimage 7.2

Todo.

2 calls to textimage_build_preview()
textimage_js_preview in ./textimage.module
Textimage preview AJAX functionality.
textimage_preset_edit in ./textimage.admin.inc
Todo.

File

./textimage.module, line 425
Provides text to image manipulations.

Code

function textimage_build_preview($variables) {
  $image = textimage_image_from_preset($variables['preset'], $variables['text'], $variables['additional_text']);
  $file_path = variable_get('file_default_scheme', 'public') . '://textimage/preview';
  return textimage_save_image($image, $file_path, 'png');
}