aboutsummaryrefslogtreecommitdiff
path: root/mod/magic_topbar/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/magic_topbar/start.php')
-rw-r--r--mod/magic_topbar/start.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/mod/magic_topbar/start.php b/mod/magic_topbar/start.php
new file mode 100644
index 000000000..36babf170
--- /dev/null
+++ b/mod/magic_topbar/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');
+}