You are here

function sms_actions_command_confirm_delete 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()
  2. 6 modules/sms_actions/sms_actions.module \sms_actions_command_confirm_delete()

Form constructor for command delete confirmation form.

Parameters

string $discriminator: Determines which command to confirm deletion.

Return value

array Drupal form array.

See also

sms_actions_command_confirm_delete_submit()

1 call to sms_actions_command_confirm_delete()
sms_actions_edit_command_form in modules/sms_actions/sms_actions.module
Form constructor for the sms_actions command editing form.

File

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

Code

function sms_actions_command_confirm_delete($form_state, $discriminator) {
  $command = sms_actions_command_load($discriminator);
  $form['discriminator'] = array(
    '#type' => 'value',
    '#value' => $command->discriminator,
  );
  $form['delete'] = array(
    '#type' => 'value',
    '#value' => TRUE,
  );
  return confirm_form($form, t('Are you sure you want to delete the command %discriminator?', array(
    '%discriminator' => $command->discriminator,
  )), 'admin/smsframework/actions', t('Deleting a command will remove any action assignments. This action cannot be undone.'), t('Delete'), t('Cancel'));
}