#542658: Move action "tabs" out of local tasks over the core issue introducing this option.

Also, the hook_user_view should probably be replaced by hook_menu_local_tasks_alter? (there is a patch in at #542658-72: Move action "tabs" out of local tasks which shows how it is done for other core modules.)

Set to task as this is just a reminder/discussion point so far, especially to the replacement for the user vew pages.

CommentFileSizeAuthor
#3 local_action2.patch7.35 KBberdir
#2 local_action.patch1.38 KBberdir

Comments

berdir’s picture

Had a look at this, attached a first patch (Only messages/new is implemented)

The issue is that it works by default only on /messages and not on /messages/inbox and so on. This can be fixed by adding a privatemsg_menu_local_tasks_alter() hook but the question is if we really want to display it on all pages below messages/ (including read and so on)...

Also, the look is imho not that great in Garland (It looks better in Seven with the + symbol).

berdir’s picture

Status: Active » Needs review
StatusFileSize
new1.38 KB

Erm...

berdir’s picture

StatusFileSize
new7.35 KB

Found out that I don't need that hook, that's just necessary when you want to display the action somewhere else than in the default path.

The updated patch also converts the Add Tag link, removes the now unecessary default local task list and fixes a few broken links which I've forgot to change in the admin area. That would have even caught by the tests, but if I don't run them... :)

berdir’s picture

Title: messages/new should be MENU_LOCAL_ACTION » Replace hook_user_view() with hook_menu_local_tasks_alter()
Status: Needs review » Active

Commited the patch, the other mentioned thing is still open.

ivnish’s picture

Issue summary: View changes
Status: Active » Closed (outdated)