summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--EVENTS.txt4
-rw-r--r--lib/router.php2
2 files changed, 6 insertions, 0 deletions
diff --git a/EVENTS.txt b/EVENTS.txt
index 2f33b2d5d..5edf59245 100644
--- a/EVENTS.txt
+++ b/EVENTS.txt
@@ -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
+
diff --git a/lib/router.php b/lib/router.php
index 4b70c0150..d4a4d2ca9 100644
--- a/lib/router.php
+++ b/lib/router.php
@@ -393,6 +393,8 @@ class Router
array('action' => 'showstream'),
array('nickname' => '[a-zA-Z0-9]{1,64}'));
+ Event::handle('RouterInitialized', array($m));
+
return $m;
}