You are here

function sms_admin_default_form_submit in SMS Framework 5

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

File

./sms.module, line 147
The core of the SMS Framework. Provides gateway managment and API for sending and receiving SMS messages.

Code

function sms_admin_default_form_submit($form_id, $form_values) {

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