function _textimage_preset_update in Textimage 5.2
Same name and namespace in other branches
- 5 textimage.module \_textimage_preset_update()
- 6.2 textimage_admin.inc \_textimage_preset_update()
- 7.2 textimage.admin.inc \_textimage_preset_update()
update a preset
Parameters
id: preset id
name: new name for the preset
3 calls to _textimage_preset_update()
File
- ./
textimage_admin.inc, line 677
Code
function _textimage_preset_update($id, $name, $description, $settings) {
$name = check_plain($name);
_textimage_preset_flush($id);
return db_query("UPDATE {textimage_preset} SET name = '%s', description = '%s', settings ='%s' WHERE pid = %d", $name, $description, serialize($settings), $id);
}