*
*
*/
-
+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");
}
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");