aboutsummaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
Diffstat (limited to 'documentation')
-rw-r--r--documentation/examples/plugins/README.txt4
-rw-r--r--documentation/examples/plugins/start.php12
2 files changed, 15 insertions, 1 deletions
diff --git a/documentation/examples/plugins/README.txt b/documentation/examples/plugins/README.txt
index 9eb04391d..704f56598 100644
--- a/documentation/examples/plugins/README.txt
+++ b/documentation/examples/plugins/README.txt
@@ -1,3 +1,5 @@
Plugin Skeleton
=========================
-
+This directory includes a plugin skeleton to be used as the starting point when
+creating a new plugin. Just create a new directory in /mod/ and copy the files
+and directories into it. Then update the manifest and start coding. \ No newline at end of file
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
+
+}