diff options
author | Fabio Comuni <fabrix.xm@gmail.com> | 2011-05-23 10:50:22 +0200 |
---|---|---|
committer | Fabio Comuni <fabrix.xm@gmail.com> | 2011-05-23 10:50:22 +0200 |
commit | f93106de3ae5ee525a9fdce6dcc4a1897f07a105 (patch) | |
tree | 02d2cd9ce7d49ed22548eadfa0b9ca67275efde7 | |
parent | 3ea145fae7defaf959b04797afc8482bd0190352 (diff) | |
download | volse-hubzilla-f93106de3ae5ee525a9fdce6dcc4a1897f07a105.tar.gz volse-hubzilla-f93106de3ae5ee525a9fdce6dcc4a1897f07a105.tar.bz2 volse-hubzilla-f93106de3ae5ee525a9fdce6dcc4a1897f07a105.zip |
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(){ |