diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-11-05 20:19:38 -0800 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-11-05 20:19:38 -0800 |
commit | 017ea0d62419cf0388e90298d8a9b8be7da77631 (patch) | |
tree | 6cf6fae5cf4be59139ca680452f5fb82bf23be78 | |
parent | a29b8b369e59d61d14dd090323e6075d5d16d2ad (diff) | |
download | volse-hubzilla-017ea0d62419cf0388e90298d8a9b8be7da77631.tar.gz volse-hubzilla-017ea0d62419cf0388e90298d8a9b8be7da77631.tar.bz2 volse-hubzilla-017ea0d62419cf0388e90298d8a9b8be7da77631.zip |
more work on hook doco
-rw-r--r-- | doc/hook/account_settings_post.bb | 1 | ||||
-rw-r--r-- | doc/hook/permissions_update.bb | 1 | ||||
-rw-r--r-- | doc/hook/settings_account.bb | 1 | ||||
-rw-r--r-- | doc/hooklist.bb | 8 | ||||
-rw-r--r-- | mod/settings.php | 3 |
5 files changed, 8 insertions, 6 deletions
diff --git a/doc/hook/account_settings_post.bb b/doc/hook/account_settings_post.bb new file mode 100644 index 000000000..bbd7a57a8 --- /dev/null +++ b/doc/hook/account_settings_post.bb @@ -0,0 +1 @@ +[h2]account_settings_post[/h2] diff --git a/doc/hook/permissions_update.bb b/doc/hook/permissions_update.bb new file mode 100644 index 000000000..40366b33d --- /dev/null +++ b/doc/hook/permissions_update.bb @@ -0,0 +1 @@ +[h2]permissions_update[/h2] diff --git a/doc/hook/settings_account.bb b/doc/hook/settings_account.bb deleted file mode 100644 index fe22dd97b..000000000 --- a/doc/hook/settings_account.bb +++ /dev/null @@ -1 +0,0 @@ -[h2]settings_account[/h2] diff --git a/doc/hooklist.bb b/doc/hooklist.bb index 87d175352..06b3e6de7 100644 --- a/doc/hooklist.bb +++ b/doc/hooklist.bb @@ -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 diff --git a/mod/settings.php b/mod/settings.php index 18bfaeb08..9a18d8e48 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -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(); |