You are here

function twilio_twiml_delete_confirm in Twilio 7

Form constructor for the TwiML deletion confirmation form.

1 string reference to 'twilio_twiml_delete_confirm'
twilio_twiml_menu in twilio_twiml/twilio_twiml.module
Implements hook_menu().

File

twilio_twiml/twilio_twiml.admin.inc, line 95
Administrative forms section

Code

function twilio_twiml_delete_confirm($form, &$form_state, $twiml = FALSE) {
  $form['twiml'] = array(
    '#type' => 'value',
    '#value' => $twiml,
  );
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $twiml['name'],
  )), TWILIO_ADMIN_PATH . '/twiml', t('This is a permanent action.'), t('Delete'), t('Cancel'));
}