[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,15 +18,6 @@ function fromapp_install()
|
|||
Logger::log("installed fromapp");
|
||||
}
|
||||
|
||||
|
||||
function fromapp_uninstall()
|
||||
{
|
||||
Hook::unregister('post_local', 'addon/fromapp/fromapp.php', 'fromapp_post_hook');
|
||||
Hook::unregister('addon_settings', 'addon/fromapp/fromapp.php', 'fromapp_settings');
|
||||
Hook::unregister('addon_settings_post', 'addon/fromapp/fromapp.php', 'fromapp_settings_post');
|
||||
Logger::log("removed fromapp");
|
||||
}
|
||||
|
||||
function fromapp_settings_post($a, $post)
|
||||
{
|
||||
if (!local_user() || empty($_POST['fromapp-submit'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue