mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-12 03:18:48 +00:00
Addon class
plugin moved to Addon src class
This commit is contained in:
parent
e97235353f
commit
0afd633346
81 changed files with 567 additions and 566 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue