aboutsummaryrefslogtreecommitdiffstats
path: root/addon/widgets/widgets.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2011-05-23 10:50:22 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2011-05-23 10:50:22 +0200
commitf93106de3ae5ee525a9fdce6dcc4a1897f07a105 (patch)
tree02d2cd9ce7d49ed22548eadfa0b9ca67275efde7 /addon/widgets/widgets.php
parent3ea145fae7defaf959b04797afc8482bd0190352 (diff)
downloadvolse-hubzilla-f93106de3ae5ee525a9fdce6dcc4a1897f07a105.tar.gz
volse-hubzilla-f93106de3ae5ee525a9fdce6dcc4a1897f07a105.tar.bz2
volse-hubzilla-f93106de3ae5ee525a9fdce6dcc4a1897f07a105.zip
Add missing widgets_uninstall function to widgets plugin
Diffstat (limited to 'addon/widgets/widgets.php')
-rw-r--r--addon/widgets/widgets.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/addon/widgets/widgets.php b/addon/widgets/widgets.php
index 6bd7a73d1..af17d9e9a 100644
--- a/addon/widgets/widgets.php
+++ b/addon/widgets/widgets.php
@@ -7,12 +7,15 @@
function widgets_install() {
- // we need some hooks, for the configuration and for sending tweets
register_hook('plugin_settings', 'addon/widgets/widgets.php', 'widgets_settings');
register_hook('plugin_settings_post', 'addon/widgets/widgets.php', 'widgets_settings_post');
-
logger("installed widgets");
}
+function widgets_uninstall() {
+ unregister_hook('plugin_settings', 'addon/widgets/widgets.php', 'widgets_settings');
+ unregister_hook('plugin_settings_post', 'addon/widgets/widgets.php', 'widgets_settings_post');
+}
+
function widgets_settings_post(){