aboutsummaryrefslogtreecommitdiffstats
path: root/HTPasswdSync.install
blob: 66894366813931f4732b7c00bdcbdfd9627f0129 (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
<?php
// $Id$

/* @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