function photoswipe_get_imagecache_presets in PhotoSwipe 6
3 calls to photoswipe_get_imagecache_presets()
- photoswipe_field_formatter_info in ./
photoswipe.module - Implementation of hook_field_formatter_info().
- photoswipe_theme in ./
photoswipe.module - Implementation of hook_theme().
- theme_photoswipe_formatter_imagefield in ./
photoswipe.module - Implementation of theme_shadowbox_formatter_imagefield().
File
- ./
photoswipe.module, line 433
Code
function photoswipe_get_imagecache_presets($formatted = FALSE) {
$presets = array();
if (function_exists('imagecache_presets')) {
if ($formatted) {
foreach (imagecache_presets() as $id => $info) {
$presets[$id] = $info['presetname'];
}
}
else {
$presets = imagecache_presets();
}
}
else {
if ($formatted) {
foreach (_imagecache_get_presets() as $id => $info) {
$presets[$id] = $info['presetname'];
}
}
else {
$presets = _imagecache_get_presets();
}
}
return $presets;
}