Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By peterpiper on
Hi,
I'm sure my issue is really simple but regardless I am totally stuck.
I have been working on a really basic module that has a few simple form fields and checkboxes. The next step is allowing images to be added to the node and later use the imagecache module to resize on the fly.
My question is: what is the best way to use the image module (if that) with the form api? Is there a way to use the hook_form method to add an image upload field?
Just need a simple "Add image" field that is handled as the other fields are.
Thanks!
Pete