hook_profile_alter expects each interior array of hook_user('view') to have a unique textual key. Blog.module currently uses the integer '0'. This patch adds the key 'blog' to the array to provide more context to hook_profile_alter().

CommentFileSizeAuthor
blog-key.patch795 bytesmatt westgate
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

webchick’s picture

Version: 5.x-dev » 6.x-dev

Yep, this is a no-brainer. Should be fixed in HEAD first, then back-ported. (applies cleanly to both)

webchick’s picture

Status: Needs review » Reviewed & tested by the community
Dries’s picture

Status: Reviewed & tested by the community » Fixed

Good catch. I've committed this to CVS HEAD and DRUPAL-5. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)