aboutsummaryrefslogtreecommitdiff
path: root/mod/basic_theme/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/basic_theme/start.php')
-rw-r--r--mod/basic_theme/start.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/mod/basic_theme/start.php b/mod/basic_theme/start.php
new file mode 100644
index 000000000..c14609b21
--- /dev/null
+++ b/mod/basic_theme/start.php
@@ -0,0 +1,14 @@
+<?php
+
+elgg_register_event_handler('init', 'system', 'basic_theme_init');
+
+function basic_theme_init() {
+ // Override Elgg logo item
+ elgg_register_menu_item('topbar', array(
+ 'name' => 'elgg_logo',
+ 'text' => elgg_get_site_entity()->name,
+ 'href' => elgg_get_site_url(),
+ 'priority' => 0,
+ ));
+
+}