function mailsystem_admin_remove_setting_submit in Mail System 7.3
Form API submit callback: Remove a custom setting.
1 string reference to 'mailsystem_admin_remove_setting_submit'
- mailsystem_admin_settings in ./
mailsystem.admin.inc - Form constructor for the mailsystem settings form.
File
- ./
mailsystem.admin.inc, line 196 - Administrative interface for the mail_system variable.
Code
function mailsystem_admin_remove_setting_submit($form, &$form_state) {
$parents = $form_state['triggering_element']['#parents'];
// Submit.
array_pop($parents);
// Fieldset.
$id = array_pop($parents);
mailsystem_clear(array(
$id => $id,
));
drupal_set_message(t('Removed custom setting for mail-id %id', array(
'%id' => $id,
)));
}