You are here

function msnf_delete_form in Multistep Nodeform 7

Menu callback; present a form for removing a form step.

1 string reference to 'msnf_delete_form'
msnf_menu in ./msnf.module
Implements hook_menu().

File

includes/msnf.field_ui.inc, line 682
msnf.field_ui.inc is a file that contains most functions needed on the Fields UI Manage forms (display and fields).

Code

function msnf_delete_form($form, &$form_state, $step) {
  $form['#step'] = $step;
  $admin_path = _field_ui_bundle_admin_path($step->entity_type, $step->bundle) . '/fields';
  $form['#redirect'] = array(
    $admin_path,
  );
  $output = confirm_form($form, t('Are you sure you want to delete the step %step?', array(
    '%step' => msnf_translate(array(
      $step->step_name,
      $step->bundle,
      'label',
    ), $step->label),
  )), $admin_path, t('This action cannot be undone.'), t('Delete'), t('Cancel'), 'confirm');
  return $output;
}