You are here

function _textimage_preset_update in Textimage 5

Same name and namespace in other branches
  1. 5.2 textimage_admin.inc \_textimage_preset_update()
  2. 6.2 textimage_admin.inc \_textimage_preset_update()
  3. 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()
textimage_preset_edit_submit in ./textimage.module

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);
}