]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
updated the plugin skeleton with some instructions
authorCash Costello <cash.costello@gmail.com>
Wed, 16 Nov 2011 02:17:31 +0000 (21:17 -0500)
committercash <cash.costello@gmail.com>
Thu, 17 Nov 2011 00:53:04 +0000 (19:53 -0500)
documentation/examples/plugins/README.txt
documentation/examples/plugins/start.php

index 9eb04391da12149f1da0ca2a2265adbc1535f2f9..704f5659804014d5a9b25cc0e7af572f52e7d677 100644 (file)
@@ -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
index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..ea1e894b2e77201aa3e94c4a761cbf16cb01cd2d 100644 (file)
@@ -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
+       
+}