You are here

function finder_admin_delete in Finder 7

Same name and namespace in other branches
  1. 6 includes/finder.admin.inc \finder_admin_delete()

Admin finder delete page.

1 string reference to 'finder_admin_delete'
finder_menu in ./finder.module
Implements hook_menu().

File

includes/finder.admin.inc, line 555
The finder admin screens.

Code

function finder_admin_delete($form, &$form_state, $finder) {

  // allow modules to change the finder here
  finder_invoke_finderapi($finder, 'finder_admin_delete');
  $form_state['storage']['finder'] = $finder;

  // build the form
  $form['#tree'] = TRUE;
  $form['finder_id'] = array(
    '#type' => 'value',
    '#value' => $finder->finder_id,
  );
  return confirm_form($form, t('Are you sure you want to delete the %ft finder?', array(
    '%ft' => $finder->title,
  )), isset($_GET['destination']) ? $_GET['destination'] : 'admin/structure/finder', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}