aboutsummaryrefslogtreecommitdiff
path: root/mod/test/start.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/test/start.php')
-rw-r--r--mod/test/start.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/mod/test/start.php b/mod/test/start.php
new file mode 100644
index 000000000..2eedf6431
--- /dev/null
+++ b/mod/test/start.php
@@ -0,0 +1,26 @@
+<?php
+
+ /**
+ * Test plugin
+ *
+ * These parameters are required for the event API, but we won't use them:
+ *
+ * @param unknown_type $event
+ * @param unknown_type $object_type
+ * @param unknown_type $object
+ */
+
+ function test_init($event, $object_type, $object = null) {
+
+ global $CONFIG;
+
+ // Let's add to the pageshell view.
+ extend_view("pageshell", "testplugin/pageshell");
+ set_view_location("testplugin/pageshell",$CONFIG->pluginspath . "test/views/");
+
+ }
+
+ // Make sure test_init is called on initialisation
+ register_event_handler('init','system','test_init');
+
+?> \ No newline at end of file