From 45dda5e834ff2059faea6ef9be2efa76f1723cbd Mon Sep 17 00:00:00 2001 From: slawkens Date: Fri, 31 May 2024 22:59:52 +0200 Subject: [PATCH] Add HOOK_ACCOUNT_CREATE_CHARACTER_* hooks --- system/src/global.php | 5 +++++ .../templates/account.create_character.html.twig | 15 +++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/system/src/global.php b/system/src/global.php index e7185cf59..d4bd0cc40 100644 --- a/system/src/global.php +++ b/system/src/global.php @@ -54,6 +54,11 @@ define('HOOK_ACCOUNT_LOGIN_AFTER_PAGE', ++$i); define('HOOK_ACCOUNT_LOGIN_POST', ++$i); define('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER', ++$i); +define('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_FIRST_TABLE', ++$i); +define('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_VOCATIONS', ++$i); +define('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_TOWNS', ++$i); +define('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER_TOWNS', ++$i); +define('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER_SECOND_TABLE', ++$i); define('HOOK_ADMIN_HEAD_END', ++$i); define('HOOK_ADMIN_HEAD_START', ++$i); define('HOOK_ADMIN_BODY_START', ++$i); diff --git a/system/templates/account.create_character.html.twig b/system/templates/account.create_character.html.twig index f7d43d7f5..5747152eb 100644 --- a/system/templates/account.create_character.html.twig +++ b/system/templates/account.create_character.html.twig @@ -23,6 +23,9 @@ In any case the name must not violate the naming conventions stated in the + + {{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_FIRST_TABLE') }} +
@@ -66,6 +69,9 @@ In any case the name must not violate the naming conventions stated in the
+ + {{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_VOCATION') }} + + + {{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER_SECOND_TABLE') }} +