Closed (fixed)
Project:
Addnode
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2007 at 13:36 UTC
Updated:
25 May 2007 at 14:02 UTC
Functions such as:function fund_node_form_submit($form_id, $form_values) are not called if the 'fund' node edit form contains an addnode widget.
It is because adding the $form['#submit']['node_form_submit'] = array(); and similar items to the $form stops the form_id_submit hook being called.
This is either because:
Comments
Comment #1
Lionfish commentedThe fix I've used treats the symptoms rather than fixes the underlying cause, so this is still a problem.
I've added the following code to the addnode_widget function, just before $form is returned:
This calls any function with that name to get it submitted also.
There are probably similar problems with the subform's hooks not being called, so this issue isn't really finished with...
Maybe I'm misunderstanding how this API works... I'm basing all this on http://api.drupal.org/api/5/file/developer/topics/forms_api.html in the "Validating Forms" and "Submitting Forms" sections.
Comment #2
(not verified) commented