Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
Create a table in the database with these codes.
Write a module that, using hook_form_alter(), will add a field for entering the code to the registration form (if you use the standard one), and in the form submission (examples https://drupal.org/node/1939170 xandeadx.ru/blog/drupal/ 381 ) will check for the presence of the code in the database, if the code is found, register and mark the code as used, or you can completely delete the code from the database, it's even easier.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question