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
|
@ -18,13 +18,6 @@ function showmore_install()
|
|||
Hook::register('addon_settings_post', 'addon/showmore/showmore.php', 'showmore_addon_settings_post');
|
||||
}
|
||||
|
||||
function showmore_uninstall()
|
||||
{
|
||||
Hook::unregister('prepare_body', 'addon/showmore/showmore.php', 'showmore_prepare_body');
|
||||
Hook::unregister('addon_settings', 'addon/showmore/showmore.php', 'showmore_addon_settings');
|
||||
Hook::unregister('addon_settings_post', 'addon/showmore/showmore.php', 'showmore_addon_settings_post');
|
||||
}
|
||||
|
||||
function showmore_addon_settings(&$a, &$s)
|
||||
{
|
||||
if (!local_user()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue