-}
-function ljpost_uninstall() {
- Addon::unregisterHook('post_local', 'addon/ljpost/ljpost.php', 'ljpost_post_local');
- Addon::unregisterHook('notifier_normal', 'addon/ljpost/ljpost.php', 'ljpost_send');
- Addon::unregisterHook('jot_networks', 'addon/ljpost/ljpost.php', 'ljpost_jot_nets');
- Addon::unregisterHook('connector_settings', 'addon/ljpost/ljpost.php', 'ljpost_settings');
- Addon::unregisterHook('connector_settings_post', 'addon/ljpost/ljpost.php', 'ljpost_settings_post');
+function ljpost_install() {
+ Hook::register('post_local', 'addon/ljpost/ljpost.php', 'ljpost_post_local');
+ Hook::register('notifier_normal', 'addon/ljpost/ljpost.php', 'ljpost_send');
+ Hook::register('jot_networks', 'addon/ljpost/ljpost.php', 'ljpost_jot_nets');
+ Hook::register('connector_settings', 'addon/ljpost/ljpost.php', 'ljpost_settings');
+ Hook::register('connector_settings_post', 'addon/ljpost/ljpost.php', 'ljpost_settings_post');