From f93106de3ae5ee525a9fdce6dcc4a1897f07a105 Mon Sep 17 00:00:00 2001 From: Fabio Comuni Date: Mon, 23 May 2011 10:50:22 +0200 Subject: Add missing widgets_uninstall function to widgets plugin --- addon/widgets/widgets.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'addon') 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(){ -- cgit v1.2.3