/[drupal]/contributions/modules/logintoboggan/logintoboggan.install
ViewVC logotype

Contents of /contributions/modules/logintoboggan/logintoboggan.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.20 - (show annotations) (download) (as text)
Wed Oct 21 19:04:20 2009 UTC (5 weeks, 3 days ago) by thehunmonkgroup
Branch: MAIN
CVS Tags: DRUPAL-7--1-0-ALPHA2, DRUPAL-7--1-0-ALPHA1, HEAD
Changes since 1.19: +6 -1 lines
File MIME type: text/x-php
doxygen cleanups. user_delete -> user_cancel. use batchAPI for deleting unvalidated users.
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 }

  ViewVC Help
Powered by ViewVC 1.1.2