diff options
author | Friendika <info@friendika.com> | 2011-05-23 18:12:34 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-05-23 18:12:34 -0700 |
commit | cde888f7f87449d4f5a281b8a23abcf3234ce9b9 (patch) | |
tree | 81ba85c769a10dacc0773731f6b4a2303fdf7dbc | |
parent | 9a3f5eaf7d4cd6b16f21e9a5f11278e55107b62f (diff) | |
parent | f93106de3ae5ee525a9fdce6dcc4a1897f07a105 (diff) | |
download | volse-hubzilla-cde888f7f87449d4f5a281b8a23abcf3234ce9b9.tar.gz volse-hubzilla-cde888f7f87449d4f5a281b8a23abcf3234ce9b9.tar.bz2 volse-hubzilla-cde888f7f87449d4f5a281b8a23abcf3234ce9b9.zip |
Merge pull request #108 from fabrixxm/widget
Add missing widgets_uninstall function to widgets plugin
-rw-r--r-- | addon/widgets/widgets.php | 7 |
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(){ |