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?
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | menu.patch | 2.99 KB | George2 |
Comments
Comment #1
George2 commentedhere'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?
Comment #2
George2 commentedComment #3
akalsey commentedThere's a lot of stuff in there not related to this issue. Block setup, for instance. Can you clean this up?
Comment #4
akalsey commentedClosing. No response from original poster.