X-Git-Url: https://jfr.im/git/irc/unrealircd/unrealircd-webpanel.git/blobdiff_plain/4b48b46f55bb6a03a29d0d0db04b3076c1eaae8f..c53841fe9ca983edbebbd9de2615a872686c8d3c:/Classes/class-hook.php diff --git a/Classes/class-hook.php b/Classes/class-hook.php index cab4ef3..c26bff2 100644 --- a/Classes/class-hook.php +++ b/Classes/class-hook.php @@ -25,7 +25,7 @@ define('HOOKTYPE_NAVBAR', 100); * This doesn't receive anything, however you must still specify an * parameter for your hook function, because it's referring to memory. Sorry =] * - * Currently this is only used by the "sql_auth" plugin by Valware in order to + * Currently this is only used by the "sql_db" plugin by Valware in order to * redirect users immediately to the login page. * * Putting HTML in this hook is not a good idea. @@ -137,9 +137,18 @@ define('HOOKTYPE_USER_ROLE_LIST', 118); define('HOOKTYPE_EDIT_ROLE', 119); +define('HOOKTYPE_ADD_ROLE', 120); +define('HOOKTYPE_DEL_ROLE', 121); define('HOOKTYPE_AUTH_MOD', 200); + +/** An upgrade has been detected. + * @param array $versioninfo[] + * Array contains: "old_version" and "new_version" + */ +define('HOOKTYPE_UPGRADE', 201); + /** * Class for "Hook" * This is the main function which gets called whenever you want to use a Hook.