diff options
Diffstat (limited to 'mod/developers/start.php')
-rw-r--r-- | mod/developers/start.php | 19 |
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 |