[development] Drupal 7 API Change notification: system_settings_form() automatic defaults reverted, hook_menu_active_handler_alter() removed
Alex Bronstein
alex at craftyspace.com
Mon Jun 28 16:46:50 UTC 2010
If anyone on this list is adversely affected by the removal of
hook_menu_active_handler_alter(), please share your use-case on
http://drupal.org/node/838408.
Thanks,
Alex.
Randy Fay wrote:
> /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
> (issue <http://drupal.org/node/838408>), so if you have used that, you
> will have to rework your code.
>
> Thanks,
> -Randy
>
> --
> Randy Fay
> Drupal Module and Site Development
> randy at randyfay.com <mailto:randy at randyfay.com>
> +1 970.462.7450
>
More information about the development
mailing list