aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-26 23:36:49 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-02-26 23:36:49 +0000
commit09acb61949e1051fc25e8fcf5936068415281802 (patch)
tree41006f6633590b7bf1718403590e0f2f3118d078 /mod
parent10682a7e334c5f5e0d805c974007fc5518023986 (diff)
downloadelgg-09acb61949e1051fc25e8fcf5936068415281802.tar.gz
elgg-09acb61949e1051fc25e8fcf5936068415281802.tar.bz2
simplified admin menu registration function in preparation for adding sections
git-svn-id: http://code.elgg.org/elgg/trunk@8500 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod')
-rw-r--r--mod/developers/start.php6
-rw-r--r--mod/diagnostics/start.php2
-rw-r--r--mod/externalpages/start.php2
-rw-r--r--mod/logbrowser/start.php2
-rw-r--r--mod/reportedcontent/start.php2
-rw-r--r--mod/uservalidationbyemail/start.php2
6 files changed, 8 insertions, 8 deletions
diff --git a/mod/developers/start.php b/mod/developers/start.php
index dd74493f4..5dc4cb2b8 100644
--- a/mod/developers/start.php
+++ b/mod/developers/start.php
@@ -18,9 +18,9 @@ function developers_init() {
function developers_setup_menu() {
if (elgg_in_context('admin')) {
- elgg_add_admin_menu_item('developers', elgg_echo('admin:developers'));
- elgg_add_admin_menu_item('settings', elgg_echo('admin:developers:settings'), 'developers');
- elgg_add_admin_menu_item('preview', elgg_echo('admin:developers:preview'), 'developers');
+ elgg_add_admin_menu_item('developers');
+ elgg_add_admin_menu_item('settings', 'developers');
+ elgg_add_admin_menu_item('preview', 'developers');
}
}
diff --git a/mod/diagnostics/start.php b/mod/diagnostics/start.php
index a79306b25..21ee6207d 100644
--- a/mod/diagnostics/start.php
+++ b/mod/diagnostics/start.php
@@ -16,7 +16,7 @@ function diagnostics_init() {
elgg_register_page_handler('diagnostics','diagnostics_page_handler');
// Add admin menu item
- elgg_add_admin_menu_item('diagnostics', elgg_echo('diagnostics'), 'utilities');
+ elgg_add_admin_menu_item('diagnostics', 'utilities');
// Register some actions
$file = elgg_get_plugins_path() . "diagnostics/actions/download.php";
diff --git a/mod/externalpages/start.php b/mod/externalpages/start.php
index 41df8750d..16f46326f 100644
--- a/mod/externalpages/start.php
+++ b/mod/externalpages/start.php
@@ -11,7 +11,7 @@ function expages_init() {
elgg_register_page_handler('expages', 'expages_page_handler');
// add a menu item for the admin edit page
- elgg_add_admin_menu_item('expages', elgg_echo('expages'), 'site');
+ elgg_add_admin_menu_item('expages', 'site');
// add footer links
expages_setup_footer_menu();
diff --git a/mod/logbrowser/start.php b/mod/logbrowser/start.php
index dace1a68e..f0f4070db 100644
--- a/mod/logbrowser/start.php
+++ b/mod/logbrowser/start.php
@@ -14,7 +14,7 @@ function logbrowser_init() {
elgg_register_plugin_hook_handler('register', 'menu:user_hover', 'logbrowser_user_hover_menu');
- elgg_add_admin_menu_item('logbrowser', elgg_echo('logbrowser'), 'utilities');
+ elgg_add_admin_menu_item('logbrowser', 'utilities');
}
/**
diff --git a/mod/reportedcontent/start.php b/mod/reportedcontent/start.php
index f89b01f2b..fe7173958 100644
--- a/mod/reportedcontent/start.php
+++ b/mod/reportedcontent/start.php
@@ -38,7 +38,7 @@ function reportedcontent_init() {
elgg_register_plugin_hook_handler('register', 'menu:user_hover', 'reportedcontent_user_hover_menu');
// Add admin menu item
- elgg_add_admin_menu_item('reportedcontent', elgg_echo('reportedcontent'), 'utilities');
+ elgg_add_admin_menu_item('reportedcontent', 'utilities');
elgg_register_widget_type(
'reportedcontent',
diff --git a/mod/uservalidationbyemail/start.php b/mod/uservalidationbyemail/start.php
index 03f204511..ce9a9cd2c 100644
--- a/mod/uservalidationbyemail/start.php
+++ b/mod/uservalidationbyemail/start.php
@@ -39,7 +39,7 @@ function uservalidationbyemail_init() {
elgg_register_plugin_hook_handler('public_pages', 'walled_garden', 'uservalidationbyemail_public_pages');
// admin interface to manually validate users
- elgg_add_admin_menu_item('unvalidated', elgg_echo('uservalidationbyemail:admin:unvalidated'), 'users');
+ elgg_add_admin_menu_item('unvalidated', 'users');
elgg_extend_view('js/elgg', 'uservalidationbyemail/js');