You are here

function imagecache_preset in ImageCache 5.2

Same name and namespace in other branches
  1. 6.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

11 calls to imagecache_preset()
imagecache_action_delete in ./imagecache.module
imagecache_action_save in ./imagecache.module
imagecache_image_alter in ./imagecache_image.module
Implementation of hook_image_alter()
imagecache_ui_action_delete_form in ./imagecache_ui.module
imagecache_ui_action_form in ./imagecache_ui.module

... See full list

1 string reference to '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 780
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();
}