mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
New hooks in account manage + create
This commit is contained in:
parent
55543ee881
commit
d40178104b
@ -49,6 +49,11 @@ define('HOOK_ACCOUNT_CREATE_AFTER_TOWNS', ++$i);
|
|||||||
define('HOOK_ACCOUNT_CREATE_BEFORE_SUBMIT_BUTTON', ++$i);
|
define('HOOK_ACCOUNT_CREATE_BEFORE_SUBMIT_BUTTON', ++$i);
|
||||||
define('HOOK_ACCOUNT_CREATE_AFTER_FORM', ++$i);
|
define('HOOK_ACCOUNT_CREATE_AFTER_FORM', ++$i);
|
||||||
define('HOOK_ACCOUNT_CREATE_AFTER_SUBMIT', ++$i);
|
define('HOOK_ACCOUNT_CREATE_AFTER_SUBMIT', ++$i);
|
||||||
|
define('HOOK_ACCOUNT_CREATE_AFTER_SAVED', ++$i);
|
||||||
|
define('HOOK_ACCOUNT_MANAGE_BEFORE_GENERAL_INFORMATION', ++$i);
|
||||||
|
define('HOOK_ACCOUNT_MANAGE_BEFORE_PUBLIC_INFORMATION', ++$i);
|
||||||
|
define('HOOK_ACCOUNT_MANAGE_BEFORE_ACCOUNT_LOGS', ++$i);
|
||||||
|
define('HOOK_ACCOUNT_MANAGE_BEFORE_CHARACTERS', ++$i);
|
||||||
define('HOOK_EMAIL_CONFIRMED', ++$i);
|
define('HOOK_EMAIL_CONFIRMED', ++$i);
|
||||||
define('HOOK_GUILDS_AFTER_INVITED_CHARACTERS', ++$i);
|
define('HOOK_GUILDS_AFTER_INVITED_CHARACTERS', ++$i);
|
||||||
define('HOOK_FIRST', HOOK_STARTUP);
|
define('HOOK_FIRST', HOOK_STARTUP);
|
||||||
|
@ -167,6 +167,8 @@ if($save)
|
|||||||
$new_account->setEMail($email);
|
$new_account->setEMail($email);
|
||||||
$new_account->save();
|
$new_account->save();
|
||||||
|
|
||||||
|
$hooks->trigger(HOOK_ACCOUNT_CREATE_AFTER_SAVED, ['account' => $new_account]);
|
||||||
|
|
||||||
if($config_salt_enabled)
|
if($config_salt_enabled)
|
||||||
$new_account->setCustomField('salt', $salt);
|
$new_account->setCustomField('salt', $salt);
|
||||||
|
|
||||||
|
@ -86,6 +86,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ hook('HOOK_ACCOUNT_MANAGE_BEFORE_GENERAL_INFORMATION') }}
|
||||||
<a name="General+Information"></a>
|
<a name="General+Information"></a>
|
||||||
<h2>General Information</h2>
|
<h2>General Information</h2>
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
@ -122,6 +123,7 @@
|
|||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
</table>
|
</table>
|
||||||
<br/>
|
<br/>
|
||||||
|
{{ hook('HOOK_ACCOUNT_MANAGE_BEFORE_PUBLIC_INFORMATION') }}
|
||||||
<a name="Public+Information"></a>
|
<a name="Public+Information"></a>
|
||||||
<h2>Public Information</h2>
|
<h2>Public Information</h2>
|
||||||
<table width="100%">
|
<table width="100%">
|
||||||
@ -139,6 +141,7 @@
|
|||||||
{% include('buttons.base.html.twig') %}
|
{% include('buttons.base.html.twig') %}
|
||||||
</form>
|
</form>
|
||||||
<br/>
|
<br/>
|
||||||
|
{{ hook('HOOK_ACCOUNT_MANAGE_BEFORE_ACCOUNT_LOGS') }}
|
||||||
<a name="Account+Logs" ></a>
|
<a name="Account+Logs" ></a>
|
||||||
<h2>Account Logs</h2>
|
<h2>Account Logs</h2>
|
||||||
<table>
|
<table>
|
||||||
@ -158,6 +161,7 @@
|
|||||||
{% endautoescape %}
|
{% endautoescape %}
|
||||||
</table>
|
</table>
|
||||||
<br/>
|
<br/>
|
||||||
|
{{ hook('HOOK_ACCOUNT_MANAGE_BEFORE_CHARACTERS') }}
|
||||||
<a name="Characters" ></a>
|
<a name="Characters" ></a>
|
||||||
<h2>Character list: {{ players|length }} characters.</h2>
|
<h2>Character list: {{ players|length }} characters.</h2>
|
||||||
<table>
|
<table>
|
||||||
|
@ -111,6 +111,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{{ hook('HOOK_ACCOUNT_MANAGE_BEFORE_GENERAL_INFORMATION') }}
|
||||||
<a name="General+Information" ></a>
|
<a name="General+Information" ></a>
|
||||||
<div class="TopButtonContainer">
|
<div class="TopButtonContainer">
|
||||||
<div class="TopButton">
|
<div class="TopButton">
|
||||||
@ -236,6 +237,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
|
{{ hook('HOOK_ACCOUNT_MANAGE_BEFORE_PUBLIC_INFORMATION') }}
|
||||||
<a name="Public+Information"></a>
|
<a name="Public+Information"></a>
|
||||||
<div class="TopButtonContainer">
|
<div class="TopButtonContainer">
|
||||||
<div class="TopButton">
|
<div class="TopButton">
|
||||||
@ -313,6 +315,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
|
{{ hook('HOOK_ACCOUNT_MANAGE_BEFORE_ACCOUNT_LOGS') }}
|
||||||
<a name="Account+Logs" ></a>
|
<a name="Account+Logs" ></a>
|
||||||
<div class="TopButtonContainer">
|
<div class="TopButtonContainer">
|
||||||
<div class="TopButton">
|
<div class="TopButton">
|
||||||
@ -384,6 +387,7 @@
|
|||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<br/>
|
<br/>
|
||||||
|
{{ hook('HOOK_ACCOUNT_MANAGE_BEFORE_CHARACTERS') }}
|
||||||
<a name="Characters" ></a>
|
<a name="Characters" ></a>
|
||||||
<div class="TopButtonContainer">
|
<div class="TopButtonContainer">
|
||||||
<div class="TopButton" >
|
<div class="TopButton" >
|
||||||
|
Loading…
x
Reference in New Issue
Block a user