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
|
@ -26,17 +26,6 @@ function testdrive_install() {
|
|||
|
||||
}
|
||||
|
||||
|
||||
function testdrive_uninstall() {
|
||||
|
||||
Hook::unregister('load_config', 'addon/testdrive/testdrive.php', 'testdrive_load_config');
|
||||
Hook::unregister('register_account', 'addon/testdrive/testdrive.php', 'testdrive_register_account');
|
||||
Hook::unregister('cron', 'addon/testdrive/testdrive.php', 'testdrive_cron');
|
||||
Hook::unregister('enotify','addon/testdrive/testdrive.php', 'testdrive_enotify');
|
||||
Hook::unregister('globaldir_update','addon/testdrive/testdrive.php', 'testdrive_globaldir_update');
|
||||
|
||||
}
|
||||
|
||||
function testdrive_load_config(App $a, ConfigFileLoader $loader)
|
||||
{
|
||||
$a->getConfigCache()->load($loader->loadAddonConfig('testdrive'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue