Groups Codes

If you are using Groups plugin by @itthinx to restrict content, and you want your users to enter a code to give them access to groups, this is a possible solution.

You only need to change the $codes_table array with the codes and groups ids that you want.

You can download the plugin from Github.