Skip to content

Commit 45dda5e

Browse files
committed
Add HOOK_ACCOUNT_CREATE_CHARACTER_* hooks
1 parent 32ae4dd commit 45dda5e

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

system/src/global.php

+5
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
define('HOOK_ACCOUNT_LOGIN_AFTER_PAGE', ++$i);
5555
define('HOOK_ACCOUNT_LOGIN_POST', ++$i);
5656
define('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER', ++$i);
57+
define('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_FIRST_TABLE', ++$i);
58+
define('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_VOCATIONS', ++$i);
59+
define('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_TOWNS', ++$i);
60+
define('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER_TOWNS', ++$i);
61+
define('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER_SECOND_TABLE', ++$i);
5762
define('HOOK_ADMIN_HEAD_END', ++$i);
5863
define('HOOK_ADMIN_HEAD_START', ++$i);
5964
define('HOOK_ADMIN_BODY_START', ++$i);

system/templates/account.create_character.html.twig

+15
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ In any case the name must not violate the naming conventions stated in the <a hr
2323
</div>
2424
<tr>
2525
<td>
26+
27+
{{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_FIRST_TABLE') }}
28+
2629
<div class="InnerTableContainer">
2730
<table style="width:100%;">
2831
<tr>
@@ -66,6 +69,9 @@ In any case the name must not violate the naming conventions stated in the <a hr
6669
</tr>
6770
</table>
6871
</div>
72+
73+
{{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_VOCATION') }}
74+
6975
<div class="InnerTableContainer">
7076
<table style="width: 100%;">
7177
<tr>
@@ -90,6 +96,9 @@ In any case the name must not violate the naming conventions stated in the <a hr
9096
</tr>
9197
</table>
9298
{% endif %}
99+
100+
{{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_BEFORE_TOWNS') }}
101+
93102
{% if config.character_towns|length > 1 %}
94103
<td>
95104
<table class="TableContent" width="100%">
@@ -112,9 +121,15 @@ In any case the name must not violate the naming conventions stated in the <a hr
112121
</table>
113122
</td>
114123
{% endif %}
124+
125+
{{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER_TOWNS') }}
126+
115127
</tr>
116128
</table>
117129
</div>
130+
131+
{{ hook('HOOK_ACCOUNT_CREATE_CHARACTER_AFTER_SECOND_TABLE') }}
132+
118133
</td>
119134
</tr>
120135
</table>

0 commit comments

Comments
 (0)