D7: Handle signature change to drupal_get_form() and hook_forms()

rfay - October 21, 2009 - 21:59
Project:Coder
Version:7.x-1.0-beta1
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active
Description

Per http://drupal.org/update/modules/6/7#hook_forms_signature, drupal_get_form() now returns a renderable array, and hook_forms() (the form function called back by drupal_get_form) has a changed signature. This is in the update doc, as you see, but it caused me a lot of pain and I wanted to make sure developers get this pointed out.

Thanks for your work on this marvelous resource.

#1

rfay - November 2, 2009 - 02:08

I was on something. It's not hook_forms(). I don't know where the callback is documented. And the return from drupal_get_form() was documented elsewhere in the 6/7 module update guide.

However, the core issue here remains: Handling the change to the callback, as (updated) described in http://drupal.org/update/modules/6/7#hook_forms_signature

Thanks again.

 
 

Drupal is a registered trademark of Dries Buytaert.