You are here

function nd_build_mode_delete_form in Node displays 6

Build mode delete form.

1 string reference to 'nd_build_mode_delete_form'
nd_build_modes in includes/nd.buildmodes.inc
Build modes overview.

File

includes/nd.buildmodes.inc, line 255
Manage build modes.

Code

function nd_build_mode_delete_form($form_state, $build_mode) {
  $form = array();
  $form['question'] = array(
    '#type' => 'markup',
    '#value' => '<p>' . t('Are you sure you want to delete the build mode type %build_mode ?', array(
      '%build_mode' => $build_mode,
    )) . '</p>',
  );
  $form['display'] = array(
    '#type' => 'value',
    '#value' => $build_mode,
  );
  $form['button']['submit'] = array(
    '#prefix' => '<div>',
    '#type' => 'submit',
    '#value' => t('Delete'),
  );
  $form['buttons']['cancel'] = array(
    '#suffix' => '</div>',
    '#type' => 'markup',
    '#value' => l('cancel', 'admin/content/types/nd/buildmodes'),
  );
  return $form;
}