function sms_carriers_admin_form_submit in SMS Framework 7
Same name and namespace in other branches
- 6.2 sms.admin.inc \sms_carriers_admin_form_submit()
Form submission handler for sms_carriers_admin_form().
See also
File
- ./
sms.admin.inc, line 213 - The admin sms functions.
Code
function sms_carriers_admin_form_submit(&$form, &$form_state) {
$enabled_carriers = array();
foreach ($form_state['values']['status'] as $carrier => $status) {
if ($status) {
$enabled_carriers[] = str_replace('-', '.', $carrier);
}
}
variable_set('sms_enabled_carriers', $enabled_carriers);
drupal_set_message(t('The configuration options have been saved.'));
}