In #443880: REALNAME module stops panel override from working, it looks like RealName was finessed to make it compatible with the "Page Manager" module (originally "Delegator") from Panels. However, I've noticed that with Page Manager 6.x-1.8 installed, the realname_user_view()
is never invoked when I view the user page. Consequently, I am unable to apply the patch from #735436: Username instead of RealName in Profile Page Title because the affected code is never invoked.
I have not tried an earlier version of Panels to see if this is just a new incompatibility. However, I have verified that commenting out the code in realname_menu_alter()
as follows does temporarily resolve the issue:
$callbacks['user/%user_uid_optional']['title callback'] = 'realname_user_page_title';
// if (!module_exists('delegator') && !module_exists('page_manager') && $callbacks['user/%user_uid_optional']['page callback'] == 'user_view') {
$callbacks['user/%user_uid_optional']['page callback'] = 'realname_user_view';
// }
I also have verified that this issue persists regardless of whether the "user_view" page override is enabled or disabled.
Any idea why this might be the case?
Comment | File | Size | Author |
---|---|---|---|
#3 | 1036458_realname_user_view_never_called.patch | 542 bytes | GuyPaddock |
#2 | 1036458_realname_user_view_never_called.patch | 1.73 KB | GuyPaddock |
Comments
Comment #1
GuyPaddock CreditAttribution: GuyPaddock commentedThis appears to be related to an issue with the Chaos Tools module: #1037330: hook_page_manager_override() is never invoked in page_manager_user_view()
Comment #2
GuyPaddock CreditAttribution: GuyPaddock commentedI found two issues here:
TRUE
).realname_menu_alter()
that causes it not to check the value of the "page_manager_user_view_disabled" variable before bypassing alteration of the menu item for user view pages.I'm committing a patch to #1037330: hook_page_manager_override() is never invoked in page_manager_user_view() that should address #1 above, but the attached patch should fix #2.
Comment #3
GuyPaddock CreditAttribution: GuyPaddock commentedHere's the same patch re-rolled for dev.
Comment #5
GuyPaddock CreditAttribution: GuyPaddock commentedComment #6
GuyPaddock CreditAttribution: GuyPaddock commented#3: 1036458_realname_user_view_never_called.patch queued for re-testing.
Comment #7
Dave ReidThanks! Committed #3 to CVS.
http://drupal.org/cvs?commit=503502