function finder_admin_element_delete in Finder 7
Same name and namespace in other branches
- 6 includes/finder.admin.inc \finder_admin_element_delete()
Admin finder delete page
1 string reference to 'finder_admin_element_delete'
- finder_menu in ./
finder.module - Implements hook_menu().
File
- includes/
finder.admin.inc, line 849 - The finder admin screens.
Code
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'));
}