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
|
@ -27,16 +27,6 @@ function mastodoncustomemojis_install()
|
|||
Hook::register('contacts_mod_init', __FILE__, 'mastodoncustomemojis_css_hook');
|
||||
}
|
||||
|
||||
function mastodoncustomemojis_uninstall()
|
||||
{
|
||||
Hook::unregister('put_item_in_cache', __FILE__, 'mastodoncustomemojis_put_item_in_cache');
|
||||
Hook::unregister('network_mod_init', __FILE__, 'mastodoncustomemojis_css_hook');
|
||||
Hook::unregister('display_mod_init', __FILE__, 'mastodoncustomemojis_css_hook');
|
||||
Hook::unregister('search_mod_init', __FILE__, 'mastodoncustomemojis_css_hook');
|
||||
Hook::unregister('community_mod_init', __FILE__, 'mastodoncustomemojis_css_hook');
|
||||
Hook::unregister('contacts_mod_init', __FILE__, 'mastodoncustomemojis_css_hook');
|
||||
}
|
||||
|
||||
function mastodoncustomemojis_css_hook(App $a)
|
||||
{
|
||||
DI::page()['htmlhead'] .= <<<HTML
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue