| 1 |
<?php
|
| 2 |
// $Id: logintoboggan.install,v 1.19 2009/10/19 18:03:59 thehunmonkgroup Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file
|
| 6 |
* Install, update and uninstall functions for the logintoboggan module.
|
| 7 |
*/
|
| 8 |
|
| 9 |
/**
|
| 10 |
* Implement hook_update_last_removed().
|
| 11 |
*/
|
| 12 |
function logintoboggan_update_last_removed() {
|
| 13 |
return 6001;
|
| 14 |
}
|
| 15 |
|
| 16 |
/**
|
| 17 |
* Implement hook_disable().
|
| 18 |
*
|
| 19 |
*/
|
| 20 |
function logintoboggan_disable() {
|
| 21 |
// Clean up the custom access denied path if it's set.
|
| 22 |
if (variable_get('site_403', '') == 'toboggan/denied') {
|
| 23 |
variable_set('site_403', '');
|
| 24 |
}
|
| 25 |
}
|
| 26 |
|
| 27 |
/**
|
| 28 |
* Implement hook_uninstall().
|
| 29 |
*/
|
| 30 |
function logintoboggan_uninstall() {
|
| 31 |
$variables = array(
|
| 32 |
'logintoboggan_login_block_type',
|
| 33 |
'logintoboggan_login_block_message',
|
| 34 |
'logintoboggan_login_with_email',
|
| 35 |
'logintoboggan_confirm_email_at_registration',
|
| 36 |
'logintoboggan_pre_auth_role',
|
| 37 |
'logintoboggan_purge_unvalidated_user_interval',
|
| 38 |
'logintoboggan_redirect_on_register',
|
| 39 |
'logintoboggan_redirect_on_confirm',
|
| 40 |
'logintoboggan_login_successful_message',
|
| 41 |
'logintoboggan_minimum_password_length',
|
| 42 |
'logintoboggan_immediate_login_on_register',
|
| 43 |
'logintoboggan_override_destination_parameter',
|
| 44 |
);
|
| 45 |
foreach ($variables as $variable) {
|
| 46 |
variable_del($variable);
|
| 47 |
}
|
| 48 |
}
|