function sms_carriers_delete_form_submit in SMS Framework 7
Same name and namespace in other branches
- 6.2 sms.admin.inc \sms_carriers_delete_form_submit()
Form submission handler for sms_carriers_delete_form().
See also
File
- ./
sms.admin.inc, line 329 - The admin sms functions.
Code
function sms_carriers_delete_form_submit($form, &$form_state) {
carrier_delete($form_state['values']['domain']);
# XXX D7 porting issue: $carrier below never gets set ??
# --- this is ALSO a bug in the D6 verion!
#if ($carrier['type'] == SMS_CARRIER_OVERRIDDEN) {
# drupal_set_message(t('The carrier has been reverted.'));
#}
#if ($carrier['type'] == SMS_CARRIER_NORMAL) {
# drupal_set_message(t('The carrier has been deleted.'));
#}
$form_state['redirect'] = 'admin/smsframework/carriers';
}