Needs review
Project:
AjaxLoader
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2007 at 19:54 UTC
Updated:
5 Jun 2007 at 21:56 UTC
The attached patch lets hook_form_alter effect ajaxloader loaded forms.
While it works fine, I'm a little apprehensive about calling "foreach (module_implements('form_alter') as $module)" outside the normal form builder and I'm curious if there may be a better way to load these forms.
That being said this does work, and I'd be happy to see it in the module.
| Comment | File | Size | Author |
|---|---|---|---|
| ajaxloader_formalter.patch | 820 bytes | jmiccolis |
Comments
Comment #1
arthurf commentedMy original intent here was to add new form elements on the fly. What I think is the more proper way to do things is to really call the drupal_get_form() to get a full fledged form. What I'd like to do is have an option for a form element (what exists currently) and then a full form via a different URL. Would that work for you?
Comment #2
jmiccolis commentedYea, I think that makes better sense as well. Using this for full form is a little unwieldy, and I had to do some things in javascript that could be more properly done on the server - like define a target for the form.