aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/plugin_api.php
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2011-08-18 01:22:35 +0200
committerKevin Chabowski <kevin@kch42.de>2011-08-18 01:22:35 +0200
commit35e5be8ac9aaa7a409c7f70b1b882b809c0bb2e1 (patch)
tree8e2a094598b7232c8ad87c6146af88e790746d62 /ratatoeskr/sys/plugin_api.php
parentbd745354de0247ff4d1903cb9d96fd50dfb4bfce (diff)
downloadratatoeskr-cms-35e5be8ac9aaa7a409c7f70b1b882b809c0bb2e1.tar.gz
ratatoeskr-cms-35e5be8ac9aaa7a409c7f70b1b882b809c0bb2e1.tar.bz2
ratatoeskr-cms-35e5be8ac9aaa7a409c7f70b1b882b809c0bb2e1.zip
Added script that will create the documentation.
Also rewritten some documentation, so NaturalDocs can handle them.
Diffstat (limited to 'ratatoeskr/sys/plugin_api.php')
-rw-r--r--ratatoeskr/sys/plugin_api.php30
1 files changed, 15 insertions, 15 deletions
diff --git a/ratatoeskr/sys/plugin_api.php b/ratatoeskr/sys/plugin_api.php
index e5625f8..697c375 100644
--- a/ratatoeskr/sys/plugin_api.php
+++ b/ratatoeskr/sys/plugin_api.php
@@ -11,6 +11,21 @@
require_once(dirname(__FILE__) . "/models.php");
+$url_handlers = array();
+/*
+ * Function: register_url_handler
+ * Register an URL handler. See <urlprocess.php> for more details.
+ *
+ * Parameters:
+ * $name - The name of the new URL
+ * $callback - The Function to be called (see <url_process>).
+ */
+function register_url_handler($name, $callback)
+{
+ global $url_handlers;
+ $url_handlers[$name] = $callback;
+}
+
/*
* Class: RatatoeskrPlugin
* An abstract class to be extended in order to write your own Plugin.
@@ -84,19 +99,4 @@ abstract class RatatoeskrPlugin
public function uninstall() {}
}
-$url_handlers = array();
-/*
- * Function: register_url_handler
- * Register an URL handler. See <urlprocess.php> for more details.
- *
- * Parameters:
- * $name - The name of the new URL
- * $callback - The Function to be called (see <url_process>).
- */
-function register_url_handler($name, $callback)
-{
- global $url_handlers;
- $url_handlers[$name] = $callback;
-}
-
?>