aboutsummaryrefslogtreecommitdiff
path: root/mod/guidtool/start.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-04 16:42:02 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-04 16:42:02 +0000
commit8a30fad5bbdfd25c03a398c6f24ab33283df3f80 (patch)
tree59d21934c54c2c60cab143a740b7ce97342a6001 /mod/guidtool/start.php
parent81351727f4b3be12ddc4fb0d026ffb3e8f89b503 (diff)
downloadelgg-8a30fad5bbdfd25c03a398c6f24ab33283df3f80.tar.gz
elgg-8a30fad5bbdfd25c03a398c6f24ab33283df3f80.tar.bz2
Adapted to use new menus.
git-svn-id: https://code.elgg.org/elgg/trunk@1687 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/guidtool/start.php')
-rw-r--r--mod/guidtool/start.php19
1 files changed, 17 insertions, 2 deletions
diff --git a/mod/guidtool/start.php b/mod/guidtool/start.php
index 7c0ead331..f524d4694 100644
--- a/mod/guidtool/start.php
+++ b/mod/guidtool/start.php
@@ -19,8 +19,8 @@
if (isadminloggedin())
{
add_menu(elgg_echo('guidtool'), $CONFIG->wwwroot . "pg/guidtool/",array(
- menu_item(elgg_echo('guidtool:browse'), $CONFIG->wwwroot."pg/guidtool/"),
- menu_item(elgg_echo('guidtool:import'), $CONFIG->wwwroot."pg/guidtool/import/"),
+// menu_item(elgg_echo('guidtool:browse'), $CONFIG->wwwroot."pg/guidtool/"),
+// menu_item(elgg_echo('guidtool:import'), $CONFIG->wwwroot."pg/guidtool/import/"),
),'guidtool');
}
@@ -30,6 +30,20 @@
}
/**
+ * Post init gumph.
+ */
+ function guidtool_page_setup()
+ {
+ global $CONFIG;
+
+ if (get_context()=='guidtool')
+ {
+ add_submenu_item(elgg_echo('guidtool:browse'), $CONFIG->wwwroot."pg/guidtool/");
+ add_submenu_item(elgg_echo('guidtool:import'), $CONFIG->wwwroot."pg/guidtool/import/");
+ }
+ }
+
+ /**
* Log browser page handler
*
* @param array $page Array of page elements, forwarded by the page handling mechanism
@@ -103,4 +117,5 @@
// Initialise log
register_elgg_event_handler('init','system','guidtool_init');
+ register_elgg_event_handler('pagesetup','system','guidtool_page_setup');
?> \ No newline at end of file