function textimage_js_preview in Textimage 5.2
Same name and namespace in other branches
- 6.2 textimage.module \textimage_js_preview()
- 7.2 textimage.module \textimage_js_preview()
1 call to textimage_js_preview()
- textimage_js in ./
textimage.module - Textimage AHAH functionality
File
- ./
textimage.module, line 949
Code
function textimage_js_preview(&$output) {
$text = $_POST['settings']['preview']['text']['default'];
$additional_text = array();
if (isset($_POST['settings']['preview']['text']['additional'])) {
$additional_text = $_POST['settings']['preview']['text']['additional'];
rsort($additional_text);
}
$preset = array(
'pid' => 0,
'name' => $_POST['name'],
'settings' => $_POST['settings'],
);
$output = theme_textimage_image($preset, $text, $additional_text, 'png', $text, $text);
}