aboutsummaryrefslogtreecommitdiff
path: root/start.php
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:52:13 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-03-15 14:52:13 -0300
commitad3bb7b13a75b7a2e23a6be637737ecd11567ed0 (patch)
tree99844baca10d28199f4257ac9c54b622ddfa7eaf /start.php
downloadelgg-ad3bb7b13a75b7a2e23a6be637737ecd11567ed0.tar.gz
elgg-ad3bb7b13a75b7a2e23a6be637737ecd11567ed0.tar.bz2
Squashed 'mod/magic_topbar/' content from commit 0fdca8a
git-subtree-dir: mod/magic_topbar git-subtree-split: 0fdca8adb73fe9e2b5be69c00c15760c8fba3366
Diffstat (limited to 'start.php')
-rw-r--r--start.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/start.php b/start.php
new file mode 100644
index 000000000..36babf170
--- /dev/null
+++ b/start.php
@@ -0,0 +1,16 @@
+<?php
+/**
+ * Elgg Magic Topbar plugin
+ *
+ * @package ElggMagicTopbar
+ */
+
+elgg_register_event_handler('init', 'system', 'magic_topbar_init');
+
+/**
+ * Initialize the magic topbar plugin.
+ */
+function magic_topbar_init() {
+ elgg_extend_view('css/elgg','magic_topbar/css');
+ elgg_extend_view('js/elgg','magic_topbar/js');
+}