[development] Drupal 7 API Change notification: hook_block_list_alter() and node bodies
Randy Fay
randy at randyfay.com
Tue May 11 00:26:28 UTC 2010
In trying to find a way to notify developers of D7 API changes, the best
solution we've come up with is to formally publish to the Drupal Development
Mailing List. API change notifications will occasionally be posted here with
a title starting with "Drupal 7 API Change notification"
These two API changes were recently committed to Drupal 7:
1. *hook_block_info_alter() has been renamed to
hook_block_list_alter()<http://api.drupal.org/api/function/hook_block_list_alter/7>
*. 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()<http://drupal.org/node/560746>.
See block_example.module<http://api.drupal.org/api/function/block_example_block_list_alter/7>for
sample usage.|
2. *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<http://api.drupal.org/api/function/node_example_install/7>.
- the has_body and has_body_label attributes no longer do anything
- In at least one
situation<http://drupal.org/node/755640#comment-2937394>,
a Drupal core reinstall was required.
Issue: #553306: Make nodes have no body field by default. Remove
deprecated APIs for body field <http://drupal.org/node/553306>
Thanks,
-Randy
--
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/20100510/0bbba7e1/attachment.html
More information about the development
mailing list