You are here

function panels_mini_delete_confirm in Panels 5.2

Same name and namespace in other branches
  1. 6.2 panels_mini/panels_mini.admin.inc \panels_mini_delete_confirm()

Provide a form to confirm deletion of a mini panel.

1 string reference to 'panels_mini_delete_confirm'
panels_mini_menu_items in panels_mini/panels_mini.module

File

panels_mini/panels_mini.module, line 303
panels_mini.module

Code

function panels_mini_delete_confirm($panel_mini) {
  if (!is_object($panel_mini)) {
    $panel_mini = panels_mini_load($panel_mini);
  }
  $form['pid'] = array(
    '#type' => 'value',
    '#value' => $panel_mini->pid,
  );
  $form['did'] = array(
    '#type' => 'value',
    '#value' => $panel_mini->did,
  );
  return confirm_form($form, t('Are you sure you want to delete the mini panel "@title"?', array(
    '@title' => $panel_mini->title,
  )), $_GET['destination'] ? $_GET['destination'] : 'admin/panels/panel-mini', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}