You are here

function mailsystem_admin_add_setting_submit in Mail System 7.3

Form API submit callback: Add an additional custom setting for a module/key.

2 string references to 'mailsystem_admin_add_setting_submit'
mailsystem_admin_add_setting_validate in ./mailsystem.admin.inc
Form validation handler for mailsystem settings form.
mailsystem_admin_settings in ./mailsystem.admin.inc
Form constructor for the mailsystem settings form.

File

./mailsystem.admin.inc, line 183
Administrative interface for the mail_system variable.

Code

function mailsystem_admin_add_setting_submit($form, &$form_state) {
  $values = $form_state['values']['mailsystem']['add-custom-settings'];
  $id = $form_state['new_settings_id'];
  mailsystem_admin_save_custom_setting($id, $values);
  drupal_set_message(t('Added new custom setting for mail-id %id', array(
    '%id' => $id,
  )));
}