You are here

function lockr_admin_advanced_form_submit in Lockr 7.3

File

./lockr.admin.inc, line 270
Form callbacks for Lockr register form.

Code

function lockr_admin_advanced_form_submit($form, &$form_state) {
  $values = $form_state['values'];
  if ($values['region']) {
    variable_set('lockr_region', $values['region']);
  }
  else {
    variable_del('lockr_region');
  }
  $custom = $values['custom'];
  variable_set('lockr_custom', $custom);
  if ($custom) {
    variable_set('lockr_cert', $values['custom_cert']);
  }
  else {
    variable_del('lockr_cert');
  }
}