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,20 +7,20 @@
*
*
*/
use Friendica\Core\Addon;
use Friendica\Core\PConfig;
function notimeline_install() {
register_hook('plugin_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
register_hook('plugin_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
Addon::registerHook('plugin_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
Addon::registerHook('plugin_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
}
function notimeline_uninstall() {
unregister_hook('plugin_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
unregister_hook('plugin_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
Addon::unregisterHook('plugin_settings', 'addon/notimeline/notimeline.php', 'notimeline_settings');
Addon::unregisterHook('plugin_settings_post', 'addon/notimeline/notimeline.php', 'notimeline_settings_post');
}