we now pass nicely structured information to the theme layer for profile pages. but it makes sense to give modules a chance to alter the profile fields. for example, i will committing to Contrib a module which lets end users choose which fields to show on their public profile page (and maybe even a 'buddies only' level too). another use would be for modules to reorder or regroup fields without needing to edit source module or theme layer. this is analogous to hook_form_alter() but for the profile view page.
this patch follows the code and functionality patttern set by hook_link_alter() and hook_mail_alter().
i will update the docs if this gets committed.
i also added an array key in the user_user('view') which got lost during the fapi upgrade.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | patch_69 | 1.56 KB | moshe weitzman |
| #2 | patch_66 | 1.46 KB | moshe weitzman |
| patch_63 | 734 bytes | moshe weitzman |
Comments
Comment #1
m3avrck commentedSounds like a solid idea!
"AS" should be lowercase, otherwise code looks solid to me.
Comment #2
moshe weitzman commentedfixed that AS.
Comment #3
drumm- Lets properly capitalize and punctuate the comment. And add a space after the
//.- And the real reason I'm not fixing that myself and committing- I assume this is not using module_invoke_all() since it needs to be pass by reference; if that is true, please add a brief comment to explain that.
Comment #4
moshe weitzman commentedcode comment enhanced and punctuation/capitalization fixed.
Comment #5
drummCommitted to HEAD.
Comment #6
moshe weitzman commentedthanks ... i just added docs to the upgrfading page. setting to active so i remember to do the api.drupal.org docs.
Comment #7
moshe weitzman commentedapi docs updated
Comment #8
(not verified) commented