function fences_admin_settings_form_submit in Fences 7.2
Same name and namespace in other branches
- 7 fences.admin.inc \fences_admin_settings_form_submit()
Form submission handler.
File
- ./
fences.admin.inc, line 360 - Functions only needed on configuration pages.
Code
function fences_admin_settings_form_submit($form, &$form_state) {
if ($form_state['values']['fences_default_markup']) {
variable_set('fences_default_markup', 1);
}
else {
variable_del('fences_default_markup');
}
if ($form_state['values']['fences_default_classes']) {
variable_set('fences_default_classes', 1);
}
else {
variable_del('fences_default_classes');
}
drupal_set_message(t('The configuration options have been saved.'));
}