[development] Drupal 7 API Change notification: system_settings_form() automatic defaults reverted, hook_menu_active_handler_alter() removed

Randy Fay randy at randyfay.com
Mon Jun 28 04:55:02 UTC 2010

*We try to notify this list when API changes are made in Drupal 7, so
contrib and custom developers have a chance to fix their code before they
have the pain of figuring out why it's broken.

*FIrst, *system_settings_form() *had until this weekend an "automatic
defaults" capability, removing the need to set '#default_value' =>
variable_get('whatever', 'def') in your system settings form. The automatic
defaults capability was rolled back (issue <http://drupal.org/node/266246>)
so that means that wherever you have been using system_settings_form()
without explicitly setting the #default_value to a variable_get(), you will
have to go back in and set it up as you would have in Drupal 6. This is a
significant API change and will have widespread impact, so check your system
settings forms.

Second, *hook_menu_active_handler_alter() *was removed from Drupal 7
so if you have used that, you will have to rework your code.


Randy Fay
Drupal Module and Site Development
randy at randyfay.com
+1  970.462.7450
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20100627/92c464a7/attachment.html 

More information about the development mailing list