You are here

function finder_admin_delete in Finder 6

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

Admin finder delete page.

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

File

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

Code

function finder_admin_delete($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 = array();
  $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,
  )), $_GET['destination'] ? $_GET['destination'] : 'admin/build/finder', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}