Closed (outdated)
Project:
Drupal core
Version:
7.x-dev
Component:
menu system
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
31 Oct 2011 at 20:05 UTC
Updated:
30 Sep 2022 at 19:52 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
malcomio commentedComment #2
hpbruna commentedI don't now why. Someone said that it is because the names are used in code. But I can only find the machine-names in code. Therefor I created this simple patch that lets your edit the names of the system-menus. I haven't ran into any problems till now.
Comment #3
knalstaaf commentedI strongly support the idea of an editable default main menu name as well. It would come in very useful when the default language isn't English.
Thanks for the patch, this is working for me.
Would there be a way to do this with the template.php as well (so we don't have to patch this when updating the core)?
Comment #4
vikashsoni commented@hpbruna thanks for this patch
it's working fine now we able to rename the main menu sharing screenshot
Comment #5
yashingole commentedComment #6
yashingole commentedVerified and tested patch #2 on Drupal 7.x. Patch was applied successfully and looks good to me.
Testing steps:
1. Install 7.x
2. Navigate to admin/structure/menu/manage/main-menu/edit
3. Main menu name is unable to edit.
4. Apply the Patch
5. Observe that the Main Menu name is editable
Testing Result:
1. After applying the patch the user can edit the main menu.
Can be move to RTBC
Screenshots are attached for reference:
Comment #7
poker10 commented@yashingole Thanks for reviewing the patches. This one does not seems to be RTBC:
According to the Drupal coding standards we cannot keep the commented line here.
The patch is also missing a test - it needs to be tested that the default menus (like the main-menu) have editable names after this change. Tha test should fail without applying this patch and pass with applied patch.
And possibly also the issue sumarry / title needs to be updated, because the IS mentions only "Main menu", but the patch is removing the protection from all default menus (see the variable
$system_menus).Comment #8
earthday47I would be willing to modify the patch and create tests for this.