Skip to content

Commit

Permalink
Add HOOK_ACCOUNT_CREATE_CHARACTER_* hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed May 31, 2024
1 parent 32ae4dd commit 45dda5e
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
5 changes: 5 additions & 0 deletions system/src/global.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
15 changes: 15 additions & 0 deletions system/templates/account.create_character.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ In any case the name must not violate the naming conventions stated in the <a hr
</div>
<tr>
<td>

{{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_FIRST_TABLE') }}

<div class="InnerTableContainer">
<table style="width:100%;">
<tr>
Expand Down Expand Up @@ -66,6 +69,9 @@ In any case the name must not violate the naming conventions stated in the <a hr
</tr>
</table>
</div>

{{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_VOCATION') }}

<div class="InnerTableContainer">
<table style="width: 100%;">
<tr>
Expand All @@ -90,6 +96,9 @@ In any case the name must not violate the naming conventions stated in the <a hr
</tr>
</table>
{% endif %}

{{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_TOWNS') }}

{% if config.character_towns|length > 1 %}
<td>
<table class="TableContent" width="100%">
Expand All @@ -112,9 +121,15 @@ In any case the name must not violate the naming conventions stated in the <a hr
</table>
</td>
{% endif %}

{{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER_TOWNS') }}

</tr>
</table>
</div>

{{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER_SECOND_TABLE') }}

</td>
</tr>
</table>
Expand Down

0 comments on commit 45dda5e

Please sign in to comment.