more work on hook doco

This commit is contained in:
redmatrix 2015-11-05 20:19:38 -08:00
parent a29b8b369e
commit 017ea0d624
5 changed files with 8 additions and 6 deletions

View file

@ -0,0 +1 @@
[h2]account_settings_post[/h2]

View file

@ -0,0 +1 @@
[h2]permissions_update[/h2]

View file

@ -1 +0,0 @@
[h2]settings_account[/h2]

View file

@ -20,7 +20,10 @@
Called when an account has expired, indicating a potential downgrade to "basic" service class
[zrl=[baseurl]/help/hook/account_settings]account_settings[/zrl]
Called when account settings have been saved
Called when generating the account settings form
[zrl=[baseurl]/help/hook/settings_account]account_settings_post[/zrl]
Called when posting from the account settings form
[zrl=[baseurl]/help/hook/activity_received]activity_received[/zrl]
Called when an activity (post, comment, like, etc.) has been received from a zot source
@ -449,9 +452,6 @@
[zrl=[baseurl]/help/hook/reverse_magic_auth]reverse_magic_auth[/zrl]
Called before invoking reverse magic auth to send you to your own site to authenticate on this site
[zrl=[baseurl]/help/hook/settings_account]settings_account[/zrl]
Called when generating the account settings form
[zrl=[baseurl]/help/hook/settings_form]settings_form[/zrl]
Called when generating the channel settings form

View file

@ -218,7 +218,8 @@ function settings_post(&$a) {
check_form_security_token_redirectOnErr('/settings/account', 'settings_account');
call_hooks('settings_account', $_POST);
call_hooks('account_settings_post', $_POST);
// call_hooks('settings_account', $_POST);
$errs = array();