-function blogger_uninstall() {
- Addon::unregisterHook('post_local', 'addon/blogger/blogger.php', 'blogger_post_local');
- Addon::unregisterHook('notifier_normal', 'addon/blogger/blogger.php', 'blogger_send');
- Addon::unregisterHook('jot_networks', 'addon/blogger/blogger.php', 'blogger_jot_nets');
- Addon::unregisterHook('connector_settings', 'addon/blogger/blogger.php', 'blogger_settings');
- Addon::unregisterHook('connector_settings_post', 'addon/blogger/blogger.php', 'blogger_settings_post');
-
- // obsolete - remove
- Addon::unregisterHook('post_local_end', 'addon/blogger/blogger.php', 'blogger_send');
- Addon::unregisterHook('plugin_settings', 'addon/blogger/blogger.php', 'blogger_settings');
- Addon::unregisterHook('plugin_settings_post', 'addon/blogger/blogger.php', 'blogger_settings_post');
+use Friendica\App;
+use Friendica\Content\Text\BBCode;
+use Friendica\Core\Hook;
+use Friendica\Core\Logger;
+use Friendica\DI;
+use Friendica\Util\XML;
+
+function blogger_install()
+{
+ Hook::register('hook_fork', 'addon/blogger/blogger.php', 'blogger_hook_fork');
+ Hook::register('post_local', 'addon/blogger/blogger.php', 'blogger_post_local');
+ Hook::register('notifier_normal', 'addon/blogger/blogger.php', 'blogger_send');
+ Hook::register('jot_networks', 'addon/blogger/blogger.php', 'blogger_jot_nets');
+ Hook::register('connector_settings', 'addon/blogger/blogger.php', 'blogger_settings');
+ Hook::register('connector_settings_post', 'addon/blogger/blogger.php', 'blogger_settings_post');