mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 09:54:27 +02:00
[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
|
@ -29,16 +29,6 @@ function diaspora_install()
|
|||
Hook::register('connector_settings_post', 'addon/diaspora/diaspora.php', 'diaspora_settings_post');
|
||||
}
|
||||
|
||||
function diaspora_uninstall()
|
||||
{
|
||||
Hook::unregister('hook_fork', 'addon/diaspora/diaspora.php', 'diaspora_hook_fork');
|
||||
Hook::unregister('post_local', 'addon/diaspora/diaspora.php', 'diaspora_post_local');
|
||||
Hook::unregister('notifier_normal', 'addon/diaspora/diaspora.php', 'diaspora_send');
|
||||
Hook::unregister('jot_networks', 'addon/diaspora/diaspora.php', 'diaspora_jot_nets');
|
||||
Hook::unregister('connector_settings', 'addon/diaspora/diaspora.php', 'diaspora_settings');
|
||||
Hook::unregister('connector_settings_post', 'addon/diaspora/diaspora.php', 'diaspora_settings_post');
|
||||
}
|
||||
|
||||
function diaspora_jot_nets(App $a, array &$jotnets_fields)
|
||||
{
|
||||
if (!local_user()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue