function mailsystem_admin_settings_submit in Mail System 7.3
Same name and namespace in other branches
- 8 mailsystem.admin.inc \mailsystem_admin_settings_submit()
- 8.2 mailsystem.admin.inc \mailsystem_admin_settings_submit()
- 6.2 mailsystem.admin.inc \mailsystem_admin_settings_submit()
- 6 mailsystem.admin.inc \mailsystem_admin_settings_submit()
- 7 mailsystem.admin.inc \mailsystem_admin_settings_submit()
- 7.2 mailsystem.admin.inc \mailsystem_admin_settings_submit()
Form API submit callback: save settings.
File
- ./
mailsystem.admin.inc, line 212 - Administrative interface for the mail_system variable.
Code
function mailsystem_admin_settings_submit($form, &$form_state) {
variable_set('mailsystem_theme', $form_state['values']['mailsystem']['mailsystem_theme']);
// Rebuild the theme registry to make changes needed by theme rendering.
drupal_theme_rebuild();
unset($form_state['values']['mailsystem']['mailsystem_theme']);
unset($form_state['values']['mailsystem']['add-custom-settings']);
foreach ($form_state['values']['mailsystem'] as $id => $values) {
mailsystem_admin_save_custom_setting($id, $values);
}
drupal_set_message(t('Saved settings for mailsystem'));
}