summaryrefslogtreecommitdiff
path: root/modules/locale
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-04-15 20:49:42 +0000
committerDries Buytaert <dries@buytaert.net>2004-04-15 20:49:42 +0000
commit10bdb51c37dd832f6bddd3364c19973a7540dda1 (patch)
treeee44dadbbf67e90a9c30bd709888add4c2503c67 /modules/locale
parenta083daf8418d1dc6e0cbc5b41924c9d364815f9e (diff)
downloadbrdo-10bdb51c37dd832f6bddd3364c19973a7540dda1.tar.gz
brdo-10bdb51c37dd832f6bddd3364c19973a7540dda1.tar.bz2
- Patch by JonBob/Jonathan: reworked the menu system so that menus are
configurable! Menu items can be disabled, repositioned, added and so on. Upgrading to requires you to run update.php. This functionality depricates some of the 'navigation modules' in the contributions repository. Furthermore, modules can now 'suggest' menu items and site adminstrators can choose to enable them. Modules in the contributions repository should try to take advantage of this.
Diffstat (limited to 'modules/locale')
-rw-r--r--modules/locale/locale.module4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/locale/locale.module b/modules/locale/locale.module
index 907c99834..47706292f 100644
--- a/modules/locale/locale.module
+++ b/modules/locale/locale.module
@@ -60,8 +60,8 @@ function locale_link($type) {
menu("admin/locale", t("localization"), "locale_admin", 5);
menu("admin/locale/search", t("search string"), "locale_admin", 8);
menu("admin/locale/help", t("help"), "locale_help_page", 9);
- menu("admin/locale/edit", t("edit string"), "locale_admin", 0, MENU_HIDE);
- menu("admin/locale/delete", t("delete string"), "locale_admin", 0, MENU_HIDE);
+ menu("admin/locale/edit", t("edit string"), "locale_admin", 0, MENU_HIDE, MENU_LOCKED);
+ menu("admin/locale/delete", t("delete string"), "locale_admin", 0, MENU_HIDE, MENU_LOCKED);
foreach ($languages as $key => $value) {
menu("admin/locale/$key", "$value", "locale_admin");