aboutsummaryrefslogtreecommitdiffstats
path: root/addon/widgets/widgets.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-05-23 18:18:01 -0700
committerFriendika <info@friendika.com>2011-05-23 18:18:01 -0700
commit19ccd658ebcf13a7cc208a3e460e44d152dda32f (patch)
treea6cfc22e4e40fe00ef5aac27023ccbfa8789958a /addon/widgets/widgets.php
parent78b2db3a9840f551c951bf0a58a54cce08133bcf (diff)
parentcde888f7f87449d4f5a281b8a23abcf3234ce9b9 (diff)
downloadvolse-hubzilla-19ccd658ebcf13a7cc208a3e460e44d152dda32f.tar.gz
volse-hubzilla-19ccd658ebcf13a7cc208a3e460e44d152dda32f.tar.bz2
volse-hubzilla-19ccd658ebcf13a7cc208a3e460e44d152dda32f.zip
Merge branch 'pull'
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(){