Hi,
Why are you using this?
Right now, it purpose is confusing me a little, because I have no influence, on showing this or not.
But maybe you have a good explanation ;)

    //If the image selection setting is on, add another preset: original format (but downsized if necessary)
    if($field['widget']['preset_selection'] == 1)
    {
      $preset_name = 'aef_image_original_format';
      $preset = imagecache_preset_by_name($preset_name);

      $element['presets_area'][$preset_name] = array(
        '#prefix' => '<div class="aef-image-preset">',
        '#suffix' => '</div>',
      );

Comments

ndeschildre’s picture

Hey,

Well, there is an option in uberimage that let you select the preset you want to use in the node edit page. So the journalist can choose which format it wants to display.
And then I was asked to add the possisibility to output the image without modification, in its original format.

Since it had to be done very quickly, I created a new imagecache preset that did nothing.
Otherwise it could have cost me much more time.
That's all :)

Cheers,
nicolas

stefan81’s picture

Thank you for your explanation :)

Since we have now the possibility to assign imagecache presets to uberimage (thanks again for your efforts!) we could remove this hard coded preset and move it to the admin, to make it optional.
What do you think?

Right now, I out-commented this part directly in the module, as I don't need it ;)

My customer and I love your module!!

ndeschildre’s picture

Glad to hear it :)