Reply to comment

Registration codes by account type with expiration

Drupal

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

AttachmentSize
regcode_by_account_type_with_expiration.patch10.16 KB
regcode.zip11.76 KB

Reply

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <b> <address> <blockquote> <br> <caption> <center> <code> <dd> <del> <div> <dl> <dt> <em> <font> <h2> <h3> <h4> <h5> <h6> <hr> <i> <img> <li> <ol> <p> <pre> <span> <strong> <sub> <sup> <table> <tbody> <td> <tfoot> <th> <thead> <tr> <u> <ul> <tr>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
12 + 4 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.