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?

CommentFileSizeAuthor
#1 menu.patch2.99 KBGeorge2

Comments

George2’s picture

StatusFileSize
new2.99 KB

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?

George2’s picture

Status: Active » Needs review
akalsey’s picture

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?

akalsey’s picture

Status: Needs work » Closed (fixed)

Closing. No response from original poster.