Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6167045
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:26:40+00:00 2026-05-23T22:26:40+00:00

For a Drupal 6 site I’m doing, it seems more appropriate for the user

  • 0

For a Drupal 6 site I’m doing, it seems more appropriate for the “user edit” section to be called “Settings” than “Edit”. I’d like to make this change, down to the point where the URL would be example.com/user/foo/settings. I’ve been mucking around in _menu and _menu_alter handlers and the like, but haven’t found a clean way to do this. Is there one? Any advice out there (other than “don’t do it”)? Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:26:42+00:00Added an answer on May 23, 2026 at 10:26 pm

    Well, yeah, the first thing that comes to mind is Don’t Do It, especially if you mean eliminating “…/edit”. You can imagine that other modules (especially contrib ones) might assume on user/%/edit in order to generate their links and stuff.

    But if you just have to do it for some reason, then it’d have to be something like:

    <?php
    /**
     * Implementation of hook_menu_alter().
     */
    function MYMODULE_menu_alter(&$items) {
      $items['user/%user_category/settings'] = $items['user/%user_category/edit'];
      $items['user/%user_category/settings']['title'] = 'Settings';
      $items['user/%user_category/settings/account'] = $items['user/%user_category/edit/account'];
      unset($items['user/%user_category/edit'], $items['user/%user_category/edit/account']);
    }
    

    This will essentially eliminate the original “/edit” callbacks.

    A better option (since, like I said, other modules/themes/etc you install in the future might assume the existence of the “…/edit” URLs) would be to have both, with the new one being just a copy of the original:

    <?php
    function MYMODULE_menu_alter(&$items) {
      $items['user/%user_category/settings'] = $items['user/%user_category/edit'];
      $items['user/%user_category/settings']['title'] = 'Settings';
      $items['user/%user_category/settings/account'] = $items['user/%user_category/edit/account'];
      $items['user/%user_category/edit']['type'] = MENU_CALLBACK;
      $items['user/%user_category/edit/account']['type'] = MENU_CALLBACK;
    }
    

    Notice I changed the original “…/edit” items’ type to *MENU_CALLBACK* (they’re *MENU_LOCAL_TASK* and *MENU_DEFAULT_LOCAL_TASK* originally), because if you leave them all as local tasks, then you will see two “edit” tabs in the user profile, admin menus, etc.

    Clear the cache and good luck!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a drupal site with more than 100000 nodes and counting. I want
I would like to execute the jQuery $(document).ready() in a drupal site. While i
I have a Drupal site with user logins. Embedded within this site is a
We just implemented a drupal site. Performance of the site seems to be an
I have an old drupal site that I'd like to upgrade, but I need
our drupal site has some user specific content. When we enable page caching the
In my Drupal site, I need to redirect the user to a certain page,
I have a non-Drupal site which authenticates with a simple MySQL user database. I
My drupal site (internal) will not display the TinyMCE editor when using Google Chrome
I am finishing up a Drupal site and I have attached a word document

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.