You are here

function forena_report_delete_confirm in Forena Reports 8

Same name and namespace in other branches
  1. 7.5 forena.report.inc \forena_report_delete_confirm()
  2. 7.4 forena.report.inc \forena_report_delete_confirm()

File

./forena.report.inc, line 922

Code

function forena_report_delete_confirm($form, $form_state, $report_name, $id) {
  $parms = $_GET;
  unset($parms['q']);
  $form['report_name'] = array(
    '#type' => 'value',
    '#value' => $report_name,
  );
  $form['id'] = array(
    '#type' => 'value',
    '#value' => $id,
  );
  $path = array(
    'path' => "reports/{$report_name}/edit",
    'options' => array(
      'query' => $parms,
    ),
  );
  $form = confirm_form($form, t('Are you sure you would like to remove the %s content', array(
    '%s' => $id,
  )), $path, 'Detail blocks contain inside this block will also be deleted.', 'Yes', 'No');
  return $form;
}