mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00: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
|
@ -21,14 +21,6 @@ function xmpp_install()
|
|||
Hook::register('logged_in', 'addon/xmpp/xmpp.php', 'xmpp_login');
|
||||
}
|
||||
|
||||
function xmpp_uninstall()
|
||||
{
|
||||
Hook::unregister('addon_settings', 'addon/xmpp/xmpp.php', 'xmpp_addon_settings');
|
||||
Hook::unregister('addon_settings_post', 'addon/xmpp/xmpp.php', 'xmpp_addon_settings_post');
|
||||
Hook::unregister('page_end', 'addon/xmpp/xmpp.php', 'xmpp_script');
|
||||
Hook::unregister('logged_in', 'addon/xmpp/xmpp.php', 'xmpp_login');
|
||||
}
|
||||
|
||||
function xmpp_addon_settings_post()
|
||||
{
|
||||
if (!local_user() || empty($_POST['xmpp-settings-submit'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue