array( 'username' => array( 'description' => 'The {users}.username.', 'type' => 'varchar', 'length' => 128, 'not null' => true, 'default' => 0, ), 'passwd' => array( 'description' => 'The crypted (crypt) password.', 'type' => 'varchar', 'length' => 128, 'not null' => true, 'default' => '', ), ), 'primary key' => array('username'), ); return $schema; } /** * Enable plugin: Refresh database * @return void */ function htpasswdsync_enable() { if(variable_get('htpasswdsync_htpasswd', '---NOT--CONFIGURED---') != '---NOT--CONFIGURED---') { _htpasswdsync_updatepasswd(false); } } /** * Disable plugin: remove users from htuser/htgroup file * @return void */ function htpasswdsync_disable() { if(variable_get('htpasswdsync_htpasswd', '---NOT--CONFIGURED---') != '---NOT--CONFIGURED---') { _htpasswdsync_updatepasswd(true); } } ?>