]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add a hook to muck around with the arguments array after it's initialized
authorEvan Prodromou <evan@controlyourself.ca>
Fri, 15 May 2009 19:07:23 +0000 (15:07 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Fri, 15 May 2009 19:07:23 +0000 (15:07 -0400)
EVENTS.txt
index.php

index 07fc446c34dcc37f6546a079bf7c4b515dc20e0d..e0ce1166679a90f4e5c6289d9bc7f8dafaa94a13 100644 (file)
@@ -109,3 +109,5 @@ EndSubGroupNav: At the end of the subscriptions group nav menu
 RouterInitialized: After the router instance has been initialized
 - $m: the Net_URL_Mapper that has just been set up
 
+ArgsInitialized: After the argument array has been initialized
+- $args: associative array of arguments, can be modified
index e24bde9179fd884a220b05f26f170a06914b07b5..0c69e226f759845d159d68f271c37f9c38c93b4a 100644 (file)
--- a/index.php
+++ b/index.php
@@ -101,6 +101,8 @@ function main()
 
     $args = array_merge($args, $_REQUEST);
 
+    Event::handle('ArgsInitialize', array(&$args));
+
     $action = $args['action'];
 
     if (!$action || !preg_match('/^[a-zA-Z0-9_-]*$/', $action)) {