You are here

function sms_carriers_edit_form_submit in SMS Framework 7

Same name and namespace in other branches
  1. 6.2 sms.admin.inc \sms_carriers_edit_form_submit()

Form submission handler for sms_carriers_edit_form().

See also

sms_carriers_edit_form()

File

./sms.admin.inc, line 288
The admin sms functions.

Code

function sms_carriers_edit_form_submit(&$form, &$form_state) {
  $carrier = array();
  $carrier = array(
    'name' => $form_state['values']['name'],
    'domain' => $form_state['values']['domain'],
  );
  carrier_save($form_state['values']['carrier'], $carrier);
  drupal_set_message(t('The carrier has been saved.'));
  drupal_goto('admin/smsframework/carriers');
}