Drupal - Remove Unwanted Page Tabs

Kevin's picture

[b]Q:[/b] How do I remove unwanted page tabs in drupal 6?
[b]A:[/b] Follow the instructions in this article - http://drupal.org/node/483324

Yet another post about trimming away unwanted stuff from drupal so that your website better matches your target web design! This time it's about removing unwanted page tabs. In my case I wanted to remove to tabs from the [url=http://drupal.org/project/userplus]userplus[/url] module's screen - the 'assign user roles' and 'assign user groups' tabs. The client doesn't want them so they just have to go!

This approach assumes you have written (or are going to write) a module but after that it is quite easy.

Following the instructions on the above mentioned page I just added the following function to my module (called communication_centre), cleared the cache and the tabs happily disappeared!!

function communication_centre_menu_alter(&$items) {
// remove the 'Assign User Roles' and 'Assign User Groups' tabs from
// the Userplus Administration Pages as they're not required.
// See http://drupal.org/node/483324 for details...

// Set these tabs to MENU_CALLBACK, so they still register the path,
// but just don't show the tab:
$items['admin/user/userplus/userperms']['type'] = MENU_CALLBACK;
$items['admin/user/userplus/usergroups']['type'] = MENU_CALLBACK;

Share this post: 

Recent Work

Some of Ireland's biggest brands use Pride Design to Design, Build, Manage, Market and Maintain their websites.

Website design for St.Patricks Credit Union in Dublin, Including Loan Calculators.

Website design and development for a step by step wedding and other stationary ordering website f

New website designed and developed for Cork's newest café, which is based in Merchants Quay in Co

New Website design for Pain Relief clinic based in Cork City.

Website for a busy Dublin city centre pub.

We redrafted the Ballymaloe house website to modernise the look and feel of the site and to also

We revamped the website for the Ballymaloe Cookery School.

We revamped the Cully & Sully website onto Drupal.

Rachel Allen was brought up in Dublin and left home at eighteen to study at the world-famous Ball

Clóna Dairy Products are a Dairy Company based in Clonakilty, Co. Cork, since 1919.

Project Arts Centre is Ireland’s leading centre for the presentation and development of c