You are here

function forena_report_delete_confirm in Forena Reports 7.4

Same name and namespace in other branches
  1. 8 forena.report.inc \forena_report_delete_confirm()
  2. 7.5 forena.report.inc \forena_report_delete_confirm()
1 string reference to 'forena_report_delete_confirm'
forena_menu in ./forena.module
Implementation of hook_menu.

File

./forena.report.inc, line 913

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;
}