aboutsummaryrefslogtreecommitdiffstats
path: root/addon
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-01-05 13:10:47 -0800
committerFriendika <info@friendika.com>2011-01-05 13:10:47 -0800
commit95ec0767d88efa7d8290db875b1c0f72542d9b68 (patch)
treea04c34f91904f83a8fdc6cad7af5eddf1a766092 /addon
parentb358e8afe21443a8f7e14573953a9780ba1d592d (diff)
downloadvolse-hubzilla-95ec0767d88efa7d8290db875b1c0f72542d9b68.tar.gz
volse-hubzilla-95ec0767d88efa7d8290db875b1c0f72542d9b68.tar.bz2
volse-hubzilla-95ec0767d88efa7d8290db875b1c0f72542d9b68.zip
plugin settings were getting changed
Diffstat (limited to 'addon')
-rw-r--r--addon/README5
-rw-r--r--addon/randplace/randplace.php4
2 files changed, 6 insertions, 3 deletions
diff --git a/addon/README b/addon/README
index 7089634d2..b92b418b4 100644
--- a/addon/README
+++ b/addon/README
@@ -82,10 +82,13 @@ Current hooks:
'settings_form' - called when generating the HTML for the user Settings page
$b is the (string) HTML of the settings page before the final '</form>' tag.
+'settings_post' - called when the Settings pages are submitted.
+ $b is the $_POST array
+
'plugin_settings' - called when generating the HTML for the addon settings page
$b is the (string) HTML of the addon settings page before the final '</form>' tag.
-'settings_post' - called when the Settings and Addon Settings pages are submitted.
+'plugin_settings_post' - called when the Addon Settings pages are submitted.
$b is the $_POST array
'profile_advanced' - called when the HTML is generated for the 'Advanced profile',
diff --git a/addon/randplace/randplace.php b/addon/randplace/randplace.php
index 2f0ff038b..d7ea65c9d 100644
--- a/addon/randplace/randplace.php
+++ b/addon/randplace/randplace.php
@@ -43,7 +43,7 @@ function randplace_install() {
*/
register_hook('plugin_settings', 'addon/randplace/randplace.php', 'randplace_settings');
- register_hook('settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
+ register_hook('plugin_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
logger("installed randplace");
}
@@ -61,7 +61,7 @@ function randplace_uninstall() {
unregister_hook('post_local', 'addon/randplace/randplace.php', 'randplace_post_hook');
unregister_hook('plugin_settings', 'addon/randplace/randplace.php', 'randplace_settings');
- unregister_hook('settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
+ unregister_hook('plugin_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
logger("removed randplace");