aboutsummaryrefslogtreecommitdiff
path: root/mod/developers/start.php
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-13 03:10:54 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-01-13 03:10:54 +0000
commit901f4bebb98a32212c836888ce7ee4bc15452eec (patch)
tree7d924e2af853fcafc66fdd985c5c487de665d1a4 /mod/developers/start.php
parentdd0c8504aac734ffb1791084ece0331d2f045bc1 (diff)
downloadelgg-901f4bebb98a32212c836888ce7ee4bc15452eec.tar.gz
elgg-901f4bebb98a32212c836888ce7ee4bc15452eec.tar.bz2
added the beginnings of a core developers tool plugin
git-svn-id: http://code.elgg.org/elgg/trunk@7879 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/developers/start.php')
-rw-r--r--mod/developers/start.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/mod/developers/start.php b/mod/developers/start.php
new file mode 100644
index 000000000..ba84c3234
--- /dev/null
+++ b/mod/developers/start.php
@@ -0,0 +1,19 @@
+<?php
+/**
+ * Elgg developer tools
+ */
+
+elgg_register_event_handler('init', 'system', 'developers_init');
+
+function developers_init() {
+
+ elgg_register_event_handler('pagesetup', 'system', 'developers_setup_menu');
+}
+
+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');
+ }
+} \ No newline at end of file