Addon class

plugin moved to Addon src class
This commit is contained in:
Adam Magness 2018-01-16 19:51:12 -05:00
parent e97235353f
commit 0afd633346
81 changed files with 567 additions and 566 deletions

View 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");