mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-06-07 18:04:26 +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
|
@ -31,18 +31,6 @@ function catavatar_install()
|
|||
Logger::log('registered catavatar');
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes the addon hook
|
||||
*/
|
||||
function catavatar_uninstall()
|
||||
{
|
||||
Hook::unregister('avatar_lookup', 'addon/catavatar/catavatar.php', 'catavatar_lookup');
|
||||
Hook::unregister('addon_settings', 'addon/catavatar/catavatar.php', 'catavatar_addon_settings');
|
||||
Hook::unregister('addon_settings_post', 'addon/catavatar/catavatar.php', 'catavatar_addon_settings_post');
|
||||
|
||||
Logger::log('unregistered catavatar');
|
||||
}
|
||||
|
||||
/**
|
||||
* Cat avatar user settings page
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue