]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Plugins - added a new event (RouterInitialized) which allows a plugin to register...
authorCiaranG <ciaran@ciarang.com>
Wed, 4 Mar 2009 15:34:04 +0000 (15:34 +0000)
committerCiaranG <ciaran@ciarang.com>
Wed, 4 Mar 2009 15:34:04 +0000 (15:34 +0000)
EVENTS.txt
lib/router.php

index 2f33b2d5d598203185aaf39c85a89579d93d8fd2..5edf59245a5595710497350ad7d2c913cc4481bb 100644 (file)
@@ -99,3 +99,7 @@ StartPublicGroupNav: Showing the public group nav menu
 
 EndPublicGroupNav: At the end of the public group nav menu
 - $action: the current action
+
+RouterInitialized: After the router instance has been initialized
+- $m: the Net_URL_Mapper that has just been set up
+
index 4b70c01505ec3163454db89f01ab8a498a270a64..d4a4d2ca9361d53c597cf3a0980ad11545721307 100644 (file)
@@ -393,6 +393,8 @@ class Router
                     array('action' => 'showstream'),
                     array('nickname' => '[a-zA-Z0-9]{1,64}'));
 
+        Event::handle('RouterInitialized', array($m));
+
         return $m;
     }