Drupal 7 API Change notification: hook_block_list_alter() and node bodies
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@randyfay.com +1 970.462.7450
On Tue, May 11, 2010 at 2:26 AM, Randy Fay <randy@randyfay.com> wrote:
In at least one situation, a Drupal core reinstall was required.
Also, note that the upgrade path between Drupal 7 versions is not currently supported. It will be supported as soon as we reach the "beta" stage. For your own sanity, don't deploy Drupal 7 in production before that stage. Damien Tournoud
If you are however as insane as Examiner.com or DrupalGardens.com or you just want to work on your D7 site before D7 is released so you can get it out with the latest code as soon as possible, see http://drupal.org/project/head2head Gábor On Tue, May 11, 2010 at 9:20 AM, Damien Tournoud <damz@prealable.org> wrote:
On Tue, May 11, 2010 at 2:26 AM, Randy Fay <randy@randyfay.com> wrote:
In at least one situation, a Drupal core reinstall was required.
Also, note that the upgrade path between Drupal 7 versions is not currently supported. It will be supported as soon as we reach the "beta" stage.
For your own sanity, don't deploy Drupal 7 in production before that stage.
Damien Tournoud
participants (3)
-
Damien Tournoud -
Gábor Hojtsy -
Randy Fay