aboutsummaryrefslogtreecommitdiffstats
path: root/HTPasswdSync.install
diff options
context:
space:
mode:
authorm.fu <dev.drupal@tribufufu.net>2011-06-05 21:54:17 +0200
committerm.fu <dev.drupal@tribufufu.net>2011-06-05 21:54:17 +0200
commit01f64f72fe240fdfc10f52eba4908090c2fc1acb (patch)
tree6f2d6a1e2a7a9e2fab2147a5d5c6d2aac020c5bc /HTPasswdSync.install
parentd02684a7dda1d1524c7594ab6e055046b9971857 (diff)
downloaddrupal_htpasswdsync-01f64f72fe240fdfc10f52eba4908090c2fc1acb.tar.gz
drupal_htpasswdsync-01f64f72fe240fdfc10f52eba4908090c2fc1acb.tar.bz2
drupal_htpasswdsync-01f64f72fe240fdfc10f52eba4908090c2fc1acb.zip
7.x-1.0 is the first 7.x compatible release.
by stfwi Additional features are: (stfwi) - htgroup file now optinoal - optional remove whitespaces from user names - optional user names lowercase - optional specify a domain where emails shall be exported as well as htuser login Fixes: (stfwi) - fixed htgroup/htpassed compliancy (sanatizing names) - fixed "liberal admin permissions" by moving into config menu - fixed php5 deprecated functions (such as split() )
Diffstat (limited to 'HTPasswdSync.install')
-rwxr-xr-x[-rw-r--r--]HTPasswdSync.install88
1 files changed, 41 insertions, 47 deletions
diff --git a/HTPasswdSync.install b/HTPasswdSync.install
index de25918..77e5112 100644..100755
--- a/HTPasswdSync.install
+++ b/HTPasswdSync.install
@@ -1,59 +1,53 @@
<?php
-/*
- * $Log$
- * Revision 1.1.2.2 2009/06/27 07:22:52 mfu
- * Fixed #503718 by m.fu : htpassword corruption when enabling/disabling user
- * Fixed #437904 by fasdalf@fasdalf.ru : group file not generated properly,
- * now happen on after_update
- * Fixed #437844 by fasdalf@fasdalf.ru : error when deleting one user
- * Fixed #503726 by m.fu: group file no longer contain disabled users
- * Added #503720 by m.fu : option to overwrite htpasswd
- * Fixed #503724 by m.fu : validation of username, must be htpasswd compatible
- *
- * 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
- *
- */
-
+/**
+ * Install plugin
+ * @return void
+ */
function htpasswdsync_install() {
- drupal_install_schema('htpasswdsync_db');
+ drupal_install_schema('htpasswdsync_db');
}
+/**
+ * Uninstall plugin
+ * @return void
+ */
function htpasswdsync_uninstall() {
- drupal_uninstall_schema('htpasswdsync_db');
- variable_del('htpasswdsync_htpasswd');
- variable_del('htpasswdsync_htgroup');
- variable_del('htpasswdsync_roles');
- variable_del('htpasswdsync_hash');
- variable_del('htpasswdsync_cron_time');
- variable_del('htpasswdsync_overwrite');
+ drupal_uninstall_schema('htpasswdsync_db');
+ variable_del('htpasswdsync_htpasswd');
+ variable_del('htpasswdsync_htgroup');
+ variable_del('htpasswdsync_roles');
+ variable_del('htpasswdsync_hash');
+ variable_del('htpasswdsync_cron_time');
+ variable_del('htpasswdsync_overwrite');
+ variable_del('htpasswdsync_names_lowercase');
+ variable_del('htpasswdsync_names_without_whitespace');
}
+/**
+ * Returns module database schema specification
+ * @return array
+ */
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'),
+ $schema['htpasswdsync_passwd'] = array(
+ 'fields' => array(
+ 'username' => array(
+ 'description' => 'The {users}.username.',
+ 'type' => 'varchar',
+ 'length' => 64,
+ 'not null' => true,
+ 'default' => 0,
+ ),
+ 'passwd' => array(
+ 'description' => 'The crypted (crypt) password.',
+ 'type' => 'varchar',
+ 'length' => 64,
+ 'not null' => true,
+ 'default' => '',
+ ),
+ ),
+ 'primary key' => array('username'),
);
return $schema;
}
+?> \ No newline at end of file

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