You are here

function forena_delete_form in Forena Reports 6

Same name and namespace in other branches
  1. 6.2 forena.admin.inc \forena_delete_form()
  2. 7 forena.admin.inc \forena_delete_form()
  3. 7.2 forena.admin.inc \forena_delete_form()
  4. 7.3 forena.admin.inc \forena_delete_form()

Form to confirm the delete of a form.

Parameters

$form_state:

Return value

unknown_type

1 string reference to 'forena_delete_form'
forena_menu in ./forena.module
Implementation of hook_menu.

File

./forena.admin.inc, line 1107

Code

function forena_delete_form() {

  // Parse names from url
  $desc = forena_report_desc();
  $report_name = $desc['name'];
  $link = $desc['link'];
  $form['report_name'] = array(
    '#type' => 'value',
    '#value' => $report_name,
  );
  return confirm_form($form, t('Are you sure you want to delete %title?', array(
    '%title' => $report_name,
  )), isset($_GET['destination']) ? $_GET['destination'] : $link, t('This action cannot be undone.'), t('Delete'), t('Cancel'));
  return $form;
}