function sms_admin_gateway_form_submit in SMS Framework 7
Same name and namespace in other branches
- 5 sms.module \sms_admin_gateway_form_submit()
- 6.2 sms.admin.inc \sms_admin_gateway_form_submit()
- 6 sms.admin.inc \sms_admin_gateway_form_submit()
Form submission handler for sms_admin_gateway_form().
See also
sms_admin_gateway_form_validate()
File
- ./
sms.admin.inc, line 135 - The admin sms functions.
Code
function sms_admin_gateway_form_submit($form, &$form_state) {
$gateway = $form_state['values']['gateway'];
$values = $form_state['values'];
// Remove unnecessary values
unset($values['op'], $values['submit'], $values['gateway'], $values['form_token'], $values['form_id'], $values['form_build_id']);
variable_set('sms_' . $gateway['identifier'] . '_settings', $values);
drupal_set_message(t('The gateway settings have been saved.'));
$form_state['redirect'] = 'admin/smsframework/gateways';
}