diff options
author | m.fu <m_fu@310415.no-reply.drupal.org> | 2009-03-16 20:05:06 +0000 |
---|---|---|
committer | m.fu <m_fu@310415.no-reply.drupal.org> | 2009-03-16 20:05:06 +0000 |
commit | 4edb2a7d8b02df5ceda10fcbe30b2ad4cf9e4a12 (patch) | |
tree | a97e26676a72eaf17980992d31769886f063ddf2 /HTPasswdSync.install | |
download | drupal_htpasswdsync-4edb2a7d8b02df5ceda10fcbe30b2ad4cf9e4a12.tar.gz drupal_htpasswdsync-4edb2a7d8b02df5ceda10fcbe30b2ad4cf9e4a12.tar.bz2 drupal_htpasswdsync-4edb2a7d8b02df5ceda10fcbe30b2ad4cf9e4a12.zip |
Initial release, drupal 6.x
Diffstat (limited to 'HTPasswdSync.install')
-rw-r--r-- | HTPasswdSync.install | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/HTPasswdSync.install b/HTPasswdSync.install new file mode 100644 index 0000000..6689436 --- /dev/null +++ b/HTPasswdSync.install @@ -0,0 +1,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; +} |