mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-13 17:39:21 +02:00
New filter: HOOK_FILTER_ROUTES
This commit is contained in:
parent
7dcdc4f743
commit
50f73ba56c
@ -198,6 +198,9 @@ class Plugins {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
global $hooks;
|
||||||
|
$hooks->triggerFilter(HOOK_FILTER_ROUTES, $routes);
|
||||||
|
|
||||||
usort($routes, function ($a, $b)
|
usort($routes, function ($a, $b)
|
||||||
{
|
{
|
||||||
// key 3 is priority
|
// key 3 is priority
|
||||||
|
@ -98,6 +98,7 @@ define('HOOK_INSTALL_FINISH', ++$i);
|
|||||||
define('HOOK_INSTALL_FINISH_END', ++$i);
|
define('HOOK_INSTALL_FINISH_END', ++$i);
|
||||||
|
|
||||||
// hook filters
|
// hook filters
|
||||||
|
define('HOOK_FILTER_ROUTES', ++$i);
|
||||||
define('HOOK_FILTER_TWIG_DISPLAY', ++$i);
|
define('HOOK_FILTER_TWIG_DISPLAY', ++$i);
|
||||||
define('HOOK_FILTER_TWIG_RENDER', ++$i);
|
define('HOOK_FILTER_TWIG_RENDER', ++$i);
|
||||||
define('HOOK_FILTER_THEME_FOOTER', ++$i);
|
define('HOOK_FILTER_THEME_FOOTER', ++$i);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user