Plugins - added a new event (RouterInitialized) which allows a plugin to register new paths to be routed
This commit is contained in:
parent
115519a5e7
commit
a7efd4ff55
|
@ -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
|
||||
|
||||
|
|
|
@ -393,6 +393,8 @@ class Router
|
|||
array('action' => 'showstream'),
|
||||
array('nickname' => '[a-zA-Z0-9]{1,64}'));
|
||||
|
||||
Event::handle('RouterInitialized', array($m));
|
||||
|
||||
return $m;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user