how to add a menu link to the users activity stream

George2 - April 9, 2009 - 14:42
Project:Activity Stream
Version:6.x-1.0-beta2
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

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?

#1

George2 - April 9, 2009 - 15:36

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

George2 - April 9, 2009 - 15:41
Status:active» needs review

#3

akalsey - April 14, 2009 - 05:00
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

akalsey - November 10, 2009 - 00:39
Status:needs work» closed

Closing. No response from original poster.

 
 

Drupal is a registered trademark of Dries Buytaert.