Pseudo fields are more useful for getting content on a page than hook_user_view() nowadays. They will work better with more display layers, like Display Suite, Panelizer, and basic re-arrangability with core-only.

The code in bakery_user_view() needs an implementation of hook_field_extra_fields() to get it in the field UI.

I expect $account->content['summary']['master_profile'] will need to change to something like $account->content['bakery_primary_profile_link'] — not a nested array, and better namespaced.

Comments

drumm created an issue. See original summary.

  • drumm committed 35d3742 on 7.x-2.x
    Issue #2961828 by dhanya_girish_zyxware: Add pseudo field for “Profile...

drumm’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.