Download & Extend

how to add a menu link to the users activity stream

Project:Activity Stream
Version:6.x-1.0-beta2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

how do i add a menu link for the user to add details about their activity stream? i want to add such an item to the primary menu for the user, but because it's not implemented in hook_menu, only hook_user, i don't seem able to.

so, how else cann i do this?

Comments

#1

here's a patch that adds a menu item (to the navigation menu by default) that also checks for a permission of "use activitystream"

i've had to merge in the patch at http://drupal.org/files/issues/activitystream_access_0.patch for the hook_perm function.

however, this doesn't prevent users from seeing the activity stream setup on their settings page by default, so maybe the categories item should be moved from hook_user and into hook_menu to allow for a permission check?

AttachmentSize
menu.patch 2.99 KB

#2

Status:active» needs review

#3

Status:needs review» needs work

There's a lot of stuff in there not related to this issue. Block setup, for instance. Can you clean this up?

#4

Status:needs work» closed (fixed)

Closing. No response from original poster.

nobody click here