The form API has received a lot of improvements with drupal 6. Due this changes, the subform element module has been totally overhauled for 6.x. Fortunately it was much easier to do. However with drupal 6 there is also the new, great #ahah property, which is now used for all the funky JS stuff. Unfortunately this property is incompatible with the subform element, which renders it useless for me.

Why is it incompatible with #ahah?
The javascript callbacks used by #ahah access $form for getting their stuff. But if the #ahah stems from a subform, the $form retrieved by the callbacks is the wrapper form - so the callbacks can't find their stuff and fail. Unfortunately there is no way to fix this. (If you find one, tell me of course. ;)

Apart from that the module seems to work fine. If you want to use it, try the development snapshot.
However my interest in the module is gone without the AHAH goodness. So there won't be an official, supported release for 6.x. If you are interested in polishing/maintaining/improving the module for 6.x, contact me.

Comments

fago’s picture

If you are looking for way to embed forms and to keep the #ahah stuff working, have a look at http://more.zites.net/embed-a-node-form-with-drupal-6.

discursives’s picture

fago’s picture

hm, for me it works fine?

stephthegeek’s picture

Are you using FF3? The new security certificate handling in FF3 certainly makes it appear broken, unless you import the certificate and grant an exception: http://securitymusings.com/article/383/mozillas-firefox-3-new-ssl-policy...

fago’s picture

ah yes, sry. The site is secured with a cacert certificate. I've removed the forced redirect to https so now it should work for you too.