Recent blog posts
- DrupalCamp CA / Guatemala 2010
- Content Profile Form inside User Edit for Drupal 6
- How use views arguments in PHP Code for Drupal 6
- Drupal Contribution: Generate vancode using mysql alone
- Drupal Module Patch: Belated PNG
- Drupal Patch to Notify Module to process only new content
- Notify module: Handle both published and unpublished entries
- osCommerse Authentication | New Drupal Module
- Single Sign On between Drupal and Moodle
- Share SSH Public Key Authentication
Registration codes by account type with expiration
Submitted by enzo on Tue, 01/20/2009 - 14:48
Hello people
Today I sent a new patch, this time the lucky module was Registration Code
This module enable to add registration codes by account type and expiration account using modules Account Types and Account Expiry with patch to support account types.
My approach was to modify the module for Drupal 5 to provide:
- Different registration codes for each account type, used on registration process
- Registration codes used wouldn't be used.
- Registration codes used will be deleted from the list of available registration codes
- Option if Account Expiry modules is enabled, the expiration type will be set based in expiration time for each account type.
I reuse code posted on http://drupal.org/node/154355 to implement store regcodes used and remove from available list.
This patch isn't part of the module yet, but I expect the maintainers check and implement coming soon. track this process at http://drupal.org/node/361527
Attached in this post, could you find the patch an a complete module with changes.
Please contact me if you have any doubt or concern
enjoy
enzo
| Attachment | (click to download) | |
|---|---|---|
| regcode_by_account_type_with_expiration.patch | 10.16 KB | |
| regcode.zip | 11.76 KB |

