]> git.mxchange.org Git - friendica.git/commitdiff
Add missing widgets_uninstall function to widgets plugin
authorFabio Comuni <fabrix.xm@gmail.com>
Mon, 23 May 2011 08:50:22 +0000 (10:50 +0200)
committerFabio Comuni <fabrix.xm@gmail.com>
Mon, 23 May 2011 08:50:22 +0000 (10:50 +0200)
addon/widgets/widgets.php

index 6bd7a73d17baa48494b414c3f8c99825c43a21d5..af17d9e9aff8910c9c927eb44b874b9268017dd4 100644 (file)
@@ -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(){