X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=addon%2Fwidgets%2Fwidgets.php;h=f5f8682223b91a6226f32eaf4bdf7667ad99e7b6;hb=55112cfdd0dc63c8ad7f719aea5b46db37fcf081;hp=6bd7a73d17baa48494b414c3f8c99825c43a21d5;hpb=4f920e5a6117c85d8b977196be2b2f22104999be;p=friendica.git diff --git a/addon/widgets/widgets.php b/addon/widgets/widgets.php index 6bd7a73d17..f5f8682223 100644 --- a/addon/widgets/widgets.php +++ b/addon/widgets/widgets.php @@ -1,18 +1,22 @@ + */ + 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(){