finder_admin_element_delete

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

Admin finder delete page

Code

includes/finder.admin.inc, line 846

<?php
function finder_admin_element_delete($form, &$form_state, $finder, $finder_element_id) {
  $element = &finder_element($finder, $finder_element_id);

  // allow modules to change the element here
  finder_invoke_finderapi($element, 'finder_admin_element_delete');

  $form['#tree'] = TRUE;
  $form['finder_element_id'] = array(
    '#type' => 'value', 
    '#value' => $finder_element_id,
  );
  $form['finder_id'] = array(
    '#type' => 'value', 
    '#value' => $finder->finder_id,
  );
  return confirm_form($form, 
    t('Are you sure you want to delete the finder element %fet ?', array('%fet' => $element->title)), 
    isset($_GET['destination']) ? $_GET['destination'] : 'admin/structure/finder/' . $finder->finder_id . '/edit', 
    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.