When the function that builds the initial form is in an included file included via hook_menu() for example, the multiadd ahah callback fails because it calls drupal_retrieve_form() in a round about way which needs the original form building function.

Suggestion: Add a #multiadd_ahah_file property to specify the path to a file to include.

Comments

eojthebrave’s picture

The attached patch allows for a new #multiadd_ahah_file property where you can specify the path to an include file that contains the form builder function.

This should probably be documented somewhere but I couldn't figure out where the best place to do that would be. Suggestions?

sidharth_k’s picture

Thanks for this Joe.

sidharth_k’s picture

Assigned: Unassigned » sidharth_k
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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