[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
|
@ -54,9 +54,6 @@ function blackout_install() {
|
|||
Hook::register('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
|
||||
}
|
||||
|
||||
function blackout_uninstall() {
|
||||
Hook::unregister('page_header', 'addon/blackout/blackout.php', 'blackout_redirect');
|
||||
}
|
||||
function blackout_redirect ($a, $b) {
|
||||
// if we have a logged in user, don't throw her out
|
||||
if (local_user()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue