finder_admin_delete

  1. finder
    1. 6.x-1.x
    2. 7.x-1.x
Versions
6.x-1.x finder_admin_delete($form_state, $finder)
7.x-1.x finder_admin_delete($form, &$form_state, $finder)

Admin finder delete page.

Code

includes/finder.admin.inc, line 552

<?php
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'));
}
?>

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Type the characters you see in this picture. (verify using audio)
Type the characters you see in the picture above; if you can't read them, submit the form and a new image will be generated. Not case sensitive.