You are here

function sms_admin_default_form_submit in SMS Framework 6

Same name and namespace in other branches
  1. 5 sms.module \sms_admin_default_form_submit()
  2. 6.2 sms.admin.inc \sms_admin_default_form_submit()
  3. 7 sms.admin.inc \sms_admin_default_form_submit()

File

./sms.admin.inc, line 34
SMS Framework core module: Admin settings form functions

Code

function sms_admin_default_form_submit($form, &$form_state) {

  // Process form submission to set the default gateway
  if ($form_state['values']['default']) {
    drupal_set_message(t('Default gateway updated.'));
    variable_set('sms_default_gateway', $form_state['values']['default']);
  }
}