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

@ -6,20 +6,20 @@
* Author: Mike Macgirvin <http://macgirvin.com/profile/mike>
*
*/
use Friendica\Core\Addon;
use Friendica\Core\PConfig;
function startpage_install() {
register_hook('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
register_hook('plugin_settings', 'addon/startpage/startpage.php', 'startpage_settings');
register_hook('plugin_settings_post', 'addon/startpage/startpage.php', 'startpage_settings_post');
Addon::registerHook('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
Addon::registerHook('plugin_settings', 'addon/startpage/startpage.php', 'startpage_settings');
Addon::registerHook('plugin_settings_post', 'addon/startpage/startpage.php', 'startpage_settings_post');
}
function startpage_uninstall() {
unregister_hook('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
unregister_hook('plugin_settings', 'addon/startpage/startpage.php', 'startpage_settings');
unregister_hook('plugin_settings_post', 'addon/startpage/startpage.php', 'startpage_settings_post');
Addon::unregisterHook('home_init', 'addon/startpage/startpage.php', 'startpage_home_init');
Addon::unregisterHook('plugin_settings', 'addon/startpage/startpage.php', 'startpage_settings');
Addon::unregisterHook('plugin_settings_post', 'addon/startpage/startpage.php', 'startpage_settings_post');
}