You are here

function regcode_og_admin in Registration codes 6.2

Same name and namespace in other branches
  1. 6 regcode_og/regcode_og.module \regcode_og_admin()

Admin page for role assignment

1 string reference to 'regcode_og_admin'
regcode_og_menu in regcode_og/regcode_og.module
Implementation of hook_menu()

File

regcode_og/regcode_og.module, line 73

Code

function regcode_og_admin() {
  $form = array();
  $form['regcode_og']['new'] = array(
    '#type' => 'fieldset',
    '#title' => t('Create a new rule'),
  );
  $form['regcode_og']['new']['ogs'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Assign organic group(s)'),
    '#options' => og_all_groups_options(),
  );
  $form['regcode_og']['new']['tid'] = array(
    '#type' => 'select',
    '#title' => t('When a user uses a regcode tagged with'),
    '#options' => regcode_get_vocab_terms(),
  );
  $form['regcode_og']['new']['submit'] = array(
    '#type' => 'submit',
    '#value' => t('Create rule'),
  );
  $form['regcode_og']['list'] = array(
    '#type' => 'markup',
    '#value' => regcode_og_rules_list_markup(),
  );
  return $form;
}