[various] Remove redundant uninstall functions
- All hooks (current and obsolete) are removed automatically during addon uninstall
This commit is contained in:
parent
aa25a9d762
commit
203672cf27
77 changed files with 229 additions and 887 deletions
|
@ -25,22 +25,6 @@ function wppost_install()
|
|||
Hook::register('connector_settings_post', 'addon/wppost/wppost.php', 'wppost_settings_post');
|
||||
}
|
||||
|
||||
function wppost_uninstall()
|
||||
{
|
||||
Hook::unregister('hook_fork', 'addon/wppost/wppost.php', 'wppost_hook_fork');
|
||||
Hook::unregister('post_local', 'addon/wppost/wppost.php', 'wppost_post_local');
|
||||
Hook::unregister('notifier_normal', 'addon/wppost/wppost.php', 'wppost_send');
|
||||
Hook::unregister('jot_networks', 'addon/wppost/wppost.php', 'wppost_jot_nets');
|
||||
Hook::unregister('connector_settings', 'addon/wppost/wppost.php', 'wppost_settings');
|
||||
Hook::unregister('connector_settings_post', 'addon/wppost/wppost.php', 'wppost_settings_post');
|
||||
|
||||
// obsolete - remove
|
||||
Hook::unregister('post_local_end', 'addon/wppost/wppost.php', 'wppost_send');
|
||||
Hook::unregister('addon_settings', 'addon/wppost/wppost.php', 'wppost_settings');
|
||||
Hook::unregister('addon_settings_post', 'addon/wppost/wppost.php', 'wppost_settings_post');
|
||||
}
|
||||
|
||||
|
||||
function wppost_jot_nets(\Friendica\App &$a, array &$jotnets_fields)
|
||||
{
|
||||
if (!local_user()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue