D
D
Dima4jin2014-01-31 17:06:47
Drupal
Dima4jin, 2014-01-31 17:06:47

How to register by invites in drupal 7?

There are 15 thousand 9 digit codes in an exel spreadsheet.
how to make registration possible with only one of these codes?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ilya Akulenko, 2014-01-31
@Dima4jin

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.

D
Dima4jin, 2014-02-02
@Dima4jin

thank! decided to use regcode)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question