aboutsummaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-24 15:27:49 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-09-24 15:27:49 +0000
commitd54f901edfde40ea67d7da0c39758ba519895885 (patch)
tree839354aba6b6511ebdcd98ca7e72e368114f2c38 /engine
parent4d979970cb5edeeec54f8bf593765679ff79e37a (diff)
downloadelgg-d54f901edfde40ea67d7da0c39758ba519895885.tar.gz
elgg-d54f901edfde40ea67d7da0c39758ba519895885.tar.bz2
git-svn-id: https://code.elgg.org/elgg/trunk@2116 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine')
-rw-r--r--engine/lib/api.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/engine/lib/api.php b/engine/lib/api.php
index 04a033825..8e176d737 100644
--- a/engine/lib/api.php
+++ b/engine/lib/api.php
@@ -1087,12 +1087,21 @@
// Initialisation & pagehandler ///////////////////////////////////////////////////////////
+ /**
+ * Initialise the API subsystem.
+ *
+ */
function api_init()
{
// Register a page handler, so we can have nice URLs
register_page_handler('api','api_endpoint_handler');
}
+ /**
+ * Register a page handler for the various API endpoints.
+ *
+ * @param array $page
+ */
function api_endpoint_handler($page)
{
global $CONFIG;