This is a notification of two recent Drupal 7 API Changes. Since many of you are developing contrib and custom modules for Drupal 7, and since Drupal 7 still has occasional required API changes, it seems reasonable to notify the developer public.
HOWEVER: This is the *only* planned API change notification to this newsletter (Maintainer News). Future announcements of API changes will go only to the Development Mailing List. If you would like to receive this occasional service, you'll need to be subscribed: http://drupal.org/mailing-lists. Each announcement will be titled "Drupal 7 API Change notification", so if you want to filter, you can.
- hook_block_info_alter() has been renamed to hook_block_list_alter(). If your D7 module was using hook_block_info_alter() it will need to be updated. Issue: #560746: Rename hook_block_info_alter() to hook_block_list_alter() and add hook_block_info_alter(). See block_example.module for sample usage.
- Content types no longer have a body field unless one is explicitly added. This means that:
- If your content type requires a body field, you must call node_add_body_field() in hook_install(). Example in node_example.install.
- the has_body and has_body_label attributes no longer do anything
- In at least one situation, a Drupal core reinstall was required.
Issue: #553306: Make nodes have no body field by default. Remove deprecated APIs for body field