]> git.mxchange.org Git - friendica.git/blobdiff - addon/widgets/widgets.php
item source
[friendica.git] / addon / widgets / widgets.php
index 6bd7a73d17baa48494b414c3f8c99825c43a21d5..f5f8682223b91a6226f32eaf4bdf7667ad99e7b6 100644 (file)
@@ -1,18 +1,22 @@
 <?php
-       /**
-        * widgets from friendika
-        * 
-        * allow to embed info from friendika into another site
-        */
-        
+/**
+ * Name: Widgets
+ * Description: Allow to embed info from friendika into another site
+ * Version: 1.0
+ * Author: Fabio Comuni <http://kirgroup.com/profile/fabrix/>
+ */
         
 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(){