You are here

function regcode_admin_manage in Registration codes 7

Same name and namespace in other branches
  1. 6.2 regcode.admin.php \regcode_admin_manage()
  2. 7.2 regcode.admin.inc \regcode_admin_manage()

Manage form.

1 string reference to 'regcode_admin_manage'
regcode_menu in ./regcode.module
Implements hook_menu().

File

./regcode.admin.php, line 22
Functions and pages needed for the admin UI of regcode module.

Code

function regcode_admin_manage() {
  $form = array();
  $operations = array(
    REGCODE_CLEAN_TRUNCATE => t('Delete all registration codes'),
    REGCODE_CLEAN_EXPIRED => t('Delete all expired codes'),
    REGCODE_CLEAN_INACTIVE => t('Delete all inactive codes'),
  );
  $form['regcode_operations'] = array(
    '#type' => 'checkboxes',
    '#title' => t('Operations'),
    '#options' => $operations,
  );
  $form['regcode_submit'] = array(
    '#type' => 'submit',
    '#value' => t('Perform operations'),
  );
  return $form;
}