You are here

function bootstrap_tour_delete_confirm in Bootstrap Tour 7

Callback form builder for the delete confirmation page.

1 string reference to 'bootstrap_tour_delete_confirm'
bootstrap_tour_menu in ./bootstrap_tour.module
Implementation of hook_menu()

File

./bootstrap_tour.module, line 211

Code

function bootstrap_tour_delete_confirm($form, &$form_state, $tour = '') {
  if (empty($tour)) {
    drupal_goto('admin/structure/tours');
  }
  $form['tour'] = array(
    '#type' => 'value',
    '#value' => $tour->name,
  );
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $tour->title,
  )), 'admin/structure/tours', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}