]> git.mxchange.org Git - friendica-addons.git/blobdiff - gnot/gnot.php
Addon class
[friendica-addons.git] / gnot / gnot.php
index bbdf9d80ebae83e6db5a175e8f1d278986d2470b..70f422b6a5c584b7a604955c20ac9a1d32cad41d 100644 (file)
@@ -7,14 +7,14 @@
  * 
  *
  */
-
+use Friendica\Core\Addon;
 use Friendica\Core\PConfig;
 
 function gnot_install() {
 
-       register_hook('plugin_settings', 'addon/gnot/gnot.php', 'gnot_settings');
-       register_hook('plugin_settings_post', 'addon/gnot/gnot.php', 'gnot_settings_post');
-       register_hook('enotify_mail', 'addon/gnot/gnot.php', 'gnot_enotify_mail');
+       Addon::registerHook('plugin_settings', 'addon/gnot/gnot.php', 'gnot_settings');
+       Addon::registerHook('plugin_settings_post', 'addon/gnot/gnot.php', 'gnot_settings_post');
+       Addon::registerHook('enotify_mail', 'addon/gnot/gnot.php', 'gnot_enotify_mail');
 
        logger("installed gnot");
 }
@@ -22,9 +22,9 @@ function gnot_install() {
 
 function gnot_uninstall() {
 
-       unregister_hook('plugin_settings', 'addon/gnot/gnot.php', 'gnot_settings');
-       unregister_hook('plugin_settings_post', 'addon/gnot/gnot.php', 'gnot_settings_post');
-       unregister_hook('enotify_mail', 'addon/gnot/gnot.php', 'gnot_enotify_mail');
+       Addon::unregisterHook('plugin_settings', 'addon/gnot/gnot.php', 'gnot_settings');
+       Addon::unregisterHook('plugin_settings_post', 'addon/gnot/gnot.php', 'gnot_settings_post');
+       Addon::unregisterHook('enotify_mail', 'addon/gnot/gnot.php', 'gnot_enotify_mail');
 
 
        logger("removed gnot");