diff options
author | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-19 02:14:39 +0000 |
---|---|---|
committer | cash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-12-19 02:14:39 +0000 |
commit | 72c83e4904a13c0e07d0d328ccbd201d16a617cc (patch) | |
tree | cae9eee563d5dce2cf22896ecdfbdf516611abe0 /mod/pages/start.php | |
parent | abf3fcae3f90b4c52e40d3ef8bb11f92c7a03d1c (diff) | |
download | elgg-72c83e4904a13c0e07d0d328ccbd201d16a617cc.tar.gz elgg-72c83e4904a13c0e07d0d328ccbd201d16a617cc.tar.bz2 |
pulled user owner block menu out of profile plugin with new menu code
git-svn-id: http://code.elgg.org/elgg/trunk@7677 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/pages/start.php')
-rw-r--r-- | mod/pages/start.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/mod/pages/start.php b/mod/pages/start.php index e90c6db54..83c765ccd 100644 --- a/mod/pages/start.php +++ b/mod/pages/start.php @@ -64,6 +64,8 @@ function pages_init() { 'write_access_id' => 'access', ); + elgg_register_plugin_hook_handler('register', 'menu:user_ownerblock', 'pages_user_ownerblock_menu'); + // register ecml views to parse elgg_register_plugin_hook_handler('get_views', 'ecml', 'pages_ecml_views_hook'); } @@ -93,6 +95,14 @@ function pages_submenus() { } /** + * Add a menu item to the user ownerblock + */ +function pages_user_ownerblock_menu($hook, $type, $return, $params) { + $item = new ElggMenuItem('pages', elgg_echo('pages'), "pg/pages/owner/{$params['user']->username}"); + elgg_register_menu_item('user_ownerblock', $item); +} + +/** * Pages page handler. * * @param array $page |