[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
|
@ -52,17 +52,12 @@ function randplace_uninstall() {
|
|||
|
||||
/**
|
||||
*
|
||||
* uninstall unregisters any hooks created with register_hook
|
||||
* during install. It may also delete configuration settings
|
||||
* and any other cleanup.
|
||||
* This function should undo anything that was done in name_install()
|
||||
*
|
||||
* Except hooks, they are all unregistered automatically and don't need to be unregistered manually.
|
||||
*
|
||||
*/
|
||||
|
||||
Hook::unregister('post_local', 'addon/randplace/randplace.php', 'randplace_post_hook');
|
||||
Hook::unregister('addon_settings', 'addon/randplace/randplace.php', 'randplace_settings');
|
||||
Hook::unregister('addon_settings_post', 'addon/randplace/randplace.php', 'randplace_settings_post');
|
||||
|
||||
|
||||
Logger::log("removed randplace");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue