You are here

function panels_delete_confirm in Panels 5

1 string reference to 'panels_delete_confirm'
panels_menu in ./panels.module
Implementation of hook_menu()

File

./panels.module, line 215

Code

function panels_delete_confirm($did = '') {
  $panels = panels_load_panels($did);
  if (!$panels) {
    drupal_goto('admin/build/panels');
  }
  $form['did'] = array(
    '#type' => 'value',
    '#value' => $panels->did,
  );
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $panels->title,
  )), $_GET['destination'] ? $_GET['destination'] : 'admin/build/panels', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}