Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
this is only a very small issue, but during module development I stumbled over it, because I made the same 'mistake'. :-)
I wanted to add content to the history section of the user profile and since I did not name my outer array too the "Masquerade" link was overwritten by my module.
The hook_user doc says:
"view": An associative array of associative arrays. The outer array should be keyed by category name.
I've included the patch to resolve this issue.
Comment | File | Size | Author |
---|---|---|---|
fix_hook_user_problem.patch | 593 bytes | Andreas Wolf | |
Comments
Comment #1
Gurpartap Singh CreditAttribution: Gurpartap Singh commentedFixed! Thanks!!
Comment #2
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.