aboutsummaryrefslogtreecommitdiff
path: root/mod/zaudio/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/zaudio/start.php')
-rw-r--r--mod/zaudio/start.php32
1 files changed, 16 insertions, 16 deletions
diff --git a/mod/zaudio/start.php b/mod/zaudio/start.php
index 35a4c33dd..b353dffb9 100644
--- a/mod/zaudio/start.php
+++ b/mod/zaudio/start.php
@@ -1,18 +1,18 @@
<?php
+ /**
+ * ZAudio - a simple mp3 player
+ * A simple plugin to play mp3 files on the page
+ * http://wpaudioplayer.com/license
+ * http://wpaudioplayer.com/standalone
+ *
+ * @package ElggZAudio
+ */
- /**
- * ZAudio - a simple mp3 player
- * A simple plugin to play mp3 files on the page
- * http://wpaudioplayer.com/license
- * http://wpaudioplayer.com/standalone
- * @package ElggZAudio
- **/
-
- function zaudio_init() {
-
- }
-
- // Make sure the status initialisation function is called on initialisation
- register_elgg_event_handler('init','system','zaudio_init',999);
-
-?> \ No newline at end of file
+elgg_register_event_handler('init', 'system', 'zaudio_init');
+
+function zaudio_init() {
+ elgg_extend_view('css/elgg', 'zaudio/css');
+
+ $js_url = elgg_get_site_url() . 'mod/zaudio/audioplayer/audio-player.js';
+ elgg_register_js('elgg.zaudio', $js_url);
+}