You are here

function _textimage_preset_create in Textimage 5

Same name and namespace in other branches
  1. 5.2 textimage_admin.inc \_textimage_preset_create()
  2. 6.2 textimage_admin.inc \_textimage_preset_create()
  3. 7.2 textimage.admin.inc \_textimage_preset_create()

create a preset

Parameters

name: name of the preset to be created.

1 call to _textimage_preset_create()
textimage_preset_edit_submit in ./textimage.module

File

./textimage.module, line 1095

Code

function _textimage_preset_create($name, $settings) {
  $next_id = db_next_id('{textimage_preset}_pid');
  return db_query('INSERT INTO {textimage_preset} (pid, name, settings) VALUES (%d, \'%s\', \'%s\')', $next_id, $name, serialize($settings));
}