You are here

function regcode_og_admin_submit in Registration codes 6

Same name and namespace in other branches
  1. 6.2 regcode_og/regcode_og.module \regcode_og_admin_submit()

Create the roles

File

regcode_og/regcode_og.module, line 139

Code

function regcode_og_admin_submit($form, $form_state) {
  $roles = array_filter($form_state['values']['role']);
  $category = $form_state['values']['category'];
  regcode_og_create_rule($category, $roles);
  drupal_set_message(t('New registration code rule created'));
}