Hello,

I'm coding a watermarking action, in the action configuration I want to upload the watermark image but looks like the UI doesn't really like file upload:

  • cannot set the enctype attribute for the $form as the _form hook only changes $form['data']
  • besides the _form hook for actions, there should also be some kind of _form_submit hook where the uploaded files can be processed. Such a hook could also benefit form processing for other non-file related actions
  • ...

Comments

drewish’s picture

Status: Active » Fixed

with #452326: Merge the action add/edit forms committed you can now do this via form_alter of imagecache_ui_action_form.

drewish’s picture

hrm... actually maybe you can't since you don't know which action the form is editing... i'll update that patch to make sure the action name is on the form as a value.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.