aboutsummaryrefslogtreecommitdiffstats
path: root/HTPasswdSync.install
blob: a973a709637226292db7b564972983062558d35a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php
// $Id$
/*
 * $Log$
 * Revision 1.1.2.1  2009/03/25 19:24:10  mfu
 * Fixed #409406 by fasdalf@fasdalf.ru : remove comma in htgroup file
 *
 * 
 */  
/* @file
 * installation declaration for htpasswdsync module
 * 
 */     
 

function htpasswdsync_install() {
  drupal_install_schema('htpasswdsync_db');
}

function htpasswdsync_uninstall() {
  drupal_uninstall_schema('htpasswdsync_db');
  variable_del('htpasswdsync_htpasswd');
  variable_del('htpasswdsync_htgroup');
  variable_del('htpasswdsync_roles');
}

function htpasswdsync_db_schema() {
  $schema['htpasswdsync_passwd'] = array(
    'fields' => array(
      'username' => array(
        'description' => 'The {users}.username.',
        'type' => 'varchar',
        'length' => 33,
        'not null' => TRUE,
        'default' => 0,
      ),
      'passwd' => array(
        'description' => 'The crypted (crypt) password.',
        'type' => 'varchar',
        'length' => 33,
        'not null' => TRUE,
        'default' => '',
      ),
    ),
    'primary key' => array('username'),
  );
  return $schema;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy