aboutsummaryrefslogtreecommitdiff
path: root/mod/messages
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 13:38:33 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-12-29 13:38:33 +0000
commit084a6003976c4fe7b1fa3f72186eff5098e0a478 (patch)
tree42d21938040e6db5cb53375f3cf3243d020e5f3f /mod/messages
parent59cb58582f64b4f239da53ede602ad2c82f02077 (diff)
downloadelgg-084a6003976c4fe7b1fa3f72186eff5098e0a478.tar.gz
elgg-084a6003976c4fe7b1fa3f72186eff5098e0a478.tar.bz2
updating plugins to use new page menu
git-svn-id: http://code.elgg.org/elgg/trunk@7740 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/messages')
-rw-r--r--mod/messages/start.php18
1 files changed, 13 insertions, 5 deletions
diff --git a/mod/messages/start.php b/mod/messages/start.php
index e8f5105b2..cf17ee013 100644
--- a/mod/messages/start.php
+++ b/mod/messages/start.php
@@ -11,11 +11,19 @@ elgg_register_event_handler('init', 'system', 'messages_init');
function messages_init() {
- // add submenu options
- if (elgg_get_context() == "messages") {
- add_submenu_item(elgg_echo('messages:inbox'), "pg/messages/" . get_loggedin_user()->username);
- add_submenu_item(elgg_echo('messages:sentmessages'), "mod/messages/sent.php");
- }
+ // add page menu items
+ elgg_register_menu_item('page', array(
+ 'name' => 'messages:inbox',
+ 'title' => elgg_echo('messages:inbox'),
+ 'url' => "pg/messages/" . get_loggedin_user()->username,
+ 'context' => 'messages',
+ ));
+ elgg_register_menu_item('page', array(
+ 'name' => 'messages:sentmessages',
+ 'title' => elgg_echo('messages:sentmessages'),
+ 'url' => "mod/messages/sent.php",
+ 'context' => 'messages',
+ ));
// Extend system CSS with our own styles, which are defined in the shouts/css view
elgg_extend_view('css/screen', 'messages/css');