You are here

function sms_actions_command_confirm_delete_submit in SMS Framework 7

Same name and namespace in other branches
  1. 6.2 modules/sms_actions/sms_actions.module \sms_actions_command_confirm_delete_submit()
  2. 6 modules/sms_actions/sms_actions.module \sms_actions_command_confirm_delete_submit()

Submit handler for sms_actions_command_confirm_delete().

See also

sms_actions_command_confirm_delete()

1 call to sms_actions_command_confirm_delete_submit()
sms_actions_edit_command_form_submit in modules/sms_actions/sms_actions.module
Submit handler for sms_actions_edit_command_form().

File

modules/sms_actions/sms_actions.module, line 523
Provides a "Send SMS" action and the ability to define custom triggers for incoming messages.

Code

function sms_actions_command_confirm_delete_submit($form, &$form_state) {
  sms_actions_command_delete($form_state['values']['discriminator']);
  drupal_set_message(t('The command %command has been deleted.', array(
    '%command' => $form_state['values']['discriminator'],
  )));
  $form_state['redirect'] = 'admin/smsframework/actions';
}