aboutsummaryrefslogtreecommitdiff
path: root/documentation/examples/plugins/start.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2011-11-15 21:17:31 -0500
committerCash Costello <cash.costello@gmail.com>2011-11-15 21:17:31 -0500
commit73d3096a3bd0a80ea82a952e6f1082cf7a382cc8 (patch)
treeb557a203aab1deb42c98faca8d87bec59031706c /documentation/examples/plugins/start.php
parent7eab6805b6cf3528066f772e501c9daff22cf191 (diff)
downloadelgg-73d3096a3bd0a80ea82a952e6f1082cf7a382cc8.tar.gz
elgg-73d3096a3bd0a80ea82a952e6f1082cf7a382cc8.tar.bz2
updated the plugin skeleton with some instructions
Diffstat (limited to 'documentation/examples/plugins/start.php')
-rw-r--r--documentation/examples/plugins/start.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/documentation/examples/plugins/start.php b/documentation/examples/plugins/start.php
index e69de29bb..ea1e894b2 100644
--- a/documentation/examples/plugins/start.php
+++ b/documentation/examples/plugins/start.php
@@ -0,0 +1,12 @@
+<?php
+/**
+ * Describe plugin here
+ */
+
+elgg_register_event_handler('init', 'system', 'my_plugin_init');
+
+function my_plugin_init() {
+ // Rename this function based on the name of your plugin and update the
+ // elgg_register_event_handler() call accordingly
+
+}