function lockr_admin_advanced_submit in Lockr 7
Same name and namespace in other branches
- 7.2 include/advanced_form.inc \lockr_admin_advanced_submit()
Save advanced settings.
1 string reference to 'lockr_admin_advanced_submit'
- lockr_admin_advanced_form in include/
advanced_form.inc - Returns form array for advanced settings.
File
- include/
advanced_form.inc, line 81 - Form handlers for advanced admin settings.
Code
function lockr_admin_advanced_submit($form, &$form_state) {
$values = $form_state['values'];
$custom = $values['custom'];
variable_set('lockr_custom', $custom);
if ($custom) {
variable_set('lockr_partner', 'custom');
variable_set('lockr_cert', $values['custom_cert']);
}
else {
$partner = lockr_get_partner();
if ($partner) {
variable_set('lockr_partner', $partner['name']);
variable_set('lockr_cert', $partner['cert']);
}
else {
variable_del('lockr_cert');
}
}
}