function _textimage_preset_update in Textimage 5
Same name and namespace in other branches
- 5.2 textimage_admin.inc \_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
1 call to _textimage_preset_update()
File
- ./
textimage.module, line 1107
Code
function _textimage_preset_update($id, $name, $settings) {
$name = check_plain($name);
_textimage_preset_flush($id);
return db_query('UPDATE {textimage_preset} SET name =\'%s\', settings =\'%s\' WHERE pid = %d', $name, serialize($settings), $id);
}