function sms_admin_gateway_form_submit in SMS Framework 6.2
Same name and namespace in other branches
- 5 sms.module \sms_admin_gateway_form_submit()
- 6 sms.admin.inc \sms_admin_gateway_form_submit()
- 7 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 122 - The admin sms functions.
Code
function sms_admin_gateway_form_submit($form, &$form_state) {
$gateway = $form_state['values']['gateway'];
// Remove uneccesary values
unset($form_state['values']['op'], $form_state['values']['submit'], $form_state['values']['gateway'], $form_state['values']['form_token'], $form_state['values']['form_id']);
variable_set('sms_' . $gateway['identifier'] . '_settings', $form_state['values']);
drupal_set_message(t('The gateway settings have been saved.'));
$form_state['redirect'] = 'admin/smsframework/gateways';
}