function regcode_og_admin_submit in Registration codes 6.2
Same name and namespace in other branches
- 6 regcode_og/regcode_og.module \regcode_og_admin_submit()
Create the roles
File
- regcode_og/
regcode_og.module, line 141
Code
function regcode_og_admin_submit($form, $form_state) {
$ogs = array_filter($form_state['values']['ogs']);
$tid = $form_state['values']['tid'];
regcode_og_create_rule($tid, $ogs);
drupal_set_message(t('New registration code rule created.'));
}