aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:48:17 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:48:17 -0300
commit238eb4e25087be44e834614a01ccbdec250cea45 (patch)
treefc5563eb060190edf8e81f16c75bb45b3a105cb8 /start.php
downloadelgg-238eb4e25087be44e834614a01ccbdec250cea45.tar.gz
elgg-238eb4e25087be44e834614a01ccbdec250cea45.tar.bz2
Squashed 'mod/basic_theme/' content from commit b0e908f
git-subtree-dir: mod/basic_theme git-subtree-split: b0e908f45134d8730954f4cc0d88ebf9b5c3eb4c
Diffstat (limited to 'start.php')
-rw-r--r--start.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/start.php b/start.php
new file mode 100644
index 000000000..c14609b21
--- /dev/null
+++ b/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,
+ ));
+
+}