You are here

function _textimage_preset_update in Textimage 5.2

Same name and namespace in other branches
  1. 5 textimage.module \_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

3 calls to _textimage_preset_update()
textimage_preset_edit_submit in ./textimage_admin.inc
textimage_update_3 in ./textimage.install
textimage_update_4 in ./textimage.install

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