Skip to content

Commit

Permalink
New hook for guild-wars-old (0.8)
Browse files Browse the repository at this point in the history
  • Loading branch information
slawkens committed May 24, 2024
1 parent 72632c7 commit f875f3c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions system/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
define('HOOK_ACCOUNT_CREATE_AFTER_FORM', ++$i);
define('HOOK_ACCOUNT_CREATE_AFTER_SUBMIT', ++$i);
define('HOOK_EMAIL_CONFIRMED', ++$i);
define('HOOK_GUILDS_AFTER_INVITED_CHARACTERS', ++$i);
define('HOOK_FIRST', HOOK_STARTUP);
define('HOOK_LAST', HOOK_EMAIL_CONFIRMED);

Expand Down
1 change: 1 addition & 0 deletions system/pages/guilds/show.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@
$useGuildNick = true;

$twig->display('guilds.view.html.twig', array(
'guild' => $guild,
'logo' => $guild_logo,
'guild_name' => $guild_name,
'description' => $description,
Expand Down
2 changes: 2 additions & 0 deletions system/templates/guilds.view.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,8 @@
</div>
<br>

{{ hook('HOOK_GUILDS_AFTER_INVITED_CHARACTERS', { 'guild': guild, 'isLeader': isLeader }) }}

<div class="TableContainer">
<table class="Table3" cellpadding="0" cellspacing="0">
<tbody>
Expand Down

0 comments on commit f875f3c

Please sign in to comment.