From: Fabio Comuni Date: Mon, 23 May 2011 08:50:22 +0000 (+0200) Subject: Add missing widgets_uninstall function to widgets plugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f93106de3ae5ee525a9fdce6dcc4a1897f07a105;p=friendica.git Add missing widgets_uninstall function to widgets plugin --- diff --git a/addon/widgets/widgets.php b/addon/widgets/widgets.php index 6bd7a73d17..af17d9e9af 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(){