You are here

function imagecache_preset in ImageCache 6.2

Same name and namespace in other branches
  1. 5.2 imagecache.module \imagecache_preset()

Load a preset by preset_id.

Parameters

preset_id: The numeric id of a preset.

Return value

preset array( 'presetname' => string, 'presetid' => integet) empty array if preset_id is an invalid preset

5 calls to imagecache_preset()
imagecache_action_delete in ./imagecache.module
imagecache_action_save in ./imagecache.module
imagecache_ui_preset_delete_form_submit in ./imagecache_ui.pages.inc
imagecache_ui_preset_flush_form_submit in ./imagecache_ui.pages.inc
imagecache_ui_preset_load in ./imagecache_ui.module
Menu wildcard loader.
2 string references to 'imagecache_preset'
imagecache_preset_save in ./imagecache.module
Save an ImageCache preset.
imagecache_update_3 in ./imagecache.install
Remove auto-increment from tables, instead depending on the sequences table and db_next_id()

File

./imagecache.module, line 1041
Dynamic image resizer and image cacher.

Code

function imagecache_preset($preset_id, $reset = FALSE) {
  $presets = imagecache_presets($reset);
  return isset($presets[$preset_id]) ? $presets[$preset_id] : array();
}