You are here

function textimage_get_presets in Textimage 5

Same name and namespace in other branches
  1. 5.2 textimage_admin.inc \textimage_get_presets()
  2. 6.2 textimage_admin.inc \textimage_get_presets()
  3. 7.2 textimage.module \textimage_get_presets()
2 calls to textimage_get_presets()
textimage_preset_edit in ./textimage.module
textimage_preset_list in ./textimage.module

File

./textimage.module, line 601

Code

function textimage_get_presets() {
  $result = db_query('SELECT pid, name, settings FROM {textimage_preset}');
  $presets = array();
  while ($preset = db_fetch_array($result)) {
    $preset['settings'] = unserialize($preset['settings']);
    $presets[$preset['name']] = $preset;
  }
  return $presets;
}