Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The hook_menu() documentation describes a settings page at admin/config/foo as an example for how to implement tabs. However, if you follow this example, your page won't show up, because pages directly under admin/config don't appear on admin/config. Per https://drupal.org/node/549094#configuration, you need to put your pages under a sub-category, e.g. admin/config/development/foo.
Comment | File | Size | Author |
---|---|---|---|
#10 | hook_menu_example-1257638-9.patch | 1.71 KB | Bès |
#7 | hook_menu_example-1257638-7.patch | 1.71 KB | Bès |
#3 | hook_menu_example-1257638-3.patch | 1.97 KB | michaellenahan |
Comments
Comment #1
Dave ReidWe need to change this example to not live under admin/config as it gives a false impression that it should be used for creating new config menu categories when it should not.
Comment #2
jhodgdonHow about making a sub-page of one of the existing admin categories? Anyway, thanks for reporting and it does sound like something that should be fixed.
Comment #3
michaellenahan CreditAttribution: michaellenahan commentedHello world, here we are at DrupalCon London 2011
LinL and michaellenahan
Comment #4
LinL CreditAttribution: LinL commentedSubscribe
Comment #5
Bès CreditAttribution: Bès commentedExemple works for me with the patch
Comment #6
jhodgdonThanks!
The patch looks good -- I think the new example is fine. However, I think we need to remove this bit from the end of the patch file:
Comment #7
Bès CreditAttribution: Bès commentedHere is a new version without the strange things at the end
Comment #8
Bès CreditAttribution: Bès commentedHere is a new version without the strange things at the end
Comment #10
Bès CreditAttribution: Bès commentedWhut ? no patch, double post ? hum OK let's do it again
Comment #11
Bès CreditAttribution: Bès commentedComment #12
jhodgdonLooks good, thanks! This should go into d7/d8 assuming it applies to 7.
Comment #13
Dries CreditAttribution: Dries commentedCommitted to 7.x and 8.x. Thanks.