2

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

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 ..." – Karl Jóhann Jun 8 '12 at 11:32
  • huh? Cross check the spelling. Works for me. Its imagecache_presets() and NOT imagecache_preset() – Dipen Jun 8 '12 at 11:37
  • Also obviously make sure imagecache module is enabled. – Dipen Jun 8 '12 at 11:38
  • Sorry, my mistake :) – Karl Jóhann Jun 8 '12 at 11:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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