Hi,

How can I remove the "Relationship" tab that appears on the user profile pages in /user/%/relationships ???

Because I have built my own set of views and blocks, I don't want my users to see this "Relationships" tab at all.

Thanks.

Comments

lachokun’s picture

Hi there,

I've also had that issue. One easy way I found to remove the Relationships tab from the user profile is to remove the "View own XX relationships" and "View all XX relationships" permissions from all roles, under the UR-UI section of the Permissions page.

Since I've also setup my own views and blocks for handling relationships, I found this to be the quickest way to remove that tab, as long as the views (and blocks) that display those relationships rely access on Roles instead of Permissions. I'm not too sure if this is the best way, but at least it worked for me. Please let me know if there's any other (better) solution! :3

Thanks.

mrf’s picture

Status: Active » Fixed

Lachokun's solution sounds like it should work even though it might hint at a bug with the new permissions, and there is also hook_menu_alter.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.