]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - Classes/class-hook.php
Fix del_usermeta() not working for both sql_db and file_db
[irc/unrealircd/unrealircd-webpanel.git] / Classes / class-hook.php
index cab4ef327675d934394a351403afd3bfec9cfe0e..c26bff2fa082fea6bad16f0323e0a9a829ab36f1 100644 (file)
@@ -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.