2

I just need an array of the preset names, is there a simple way to do this?

1 Answer 1

3

imagecache_presets

Get an array of all presets and their settings.

Parameters

reset: if set to TRUE it will clear the preset cache

Return value

array of presets array( $preset_id => array('presetid' => integer, 'presetname' => string))

4
  • This causes a "Fatal error: Call to undefined function ..." Jun 8, 2012 at 11:32
  • huh? Cross check the spelling. Works for me. Its imagecache_presets() and NOT imagecache_preset()
    – Dipen
    Jun 8, 2012 at 11:37
  • Also obviously make sure imagecache module is enabled.
    – Dipen
    Jun 8, 2012 at 11:38
  • Sorry, my mistake :) Jun 8, 2012 at 11:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.