Support for compact_forms and other modules
Christefano - February 2, 2008 - 00:57
| Project: | Contact attach |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
It seems that the "Attachment #1", "Attachment #2", etc. fields are being dynamically created by contact_attach, which prevents compact_forms and other modules from being able to modify the form. Another effect of this is that the "#1", "#2", etc. strings aren't translatable by locale.
Is there another way that contact_attach could offer any number of attachment fields and still support other modules?

#1
Contact attach modifies the Contact module's forms with hook_form_alter(), it has no forms of it's own. I'm not sure how I'd modify the Contact attach module such that it does what it does in the way it does it while allowing the Compact Forms module to do it's thing.
Although I haven't tested it, other modules should be able to modify the form in the same way I did: hook_form_alter().
The numbers being translatable is a separate issue, which I believe I have addressed here: http://drupal.org/cvs?commit=102308