function finder_admin_element_delete in Finder 6
Same name and namespace in other branches
- 7 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 - Implementation of hook_menu().
File
- includes/
finder.admin.inc, line 882 - The finder admin screens.
Code
function finder_admin_element_delete($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 = array();
$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,
)), $_GET['destination'] ? $_GET['destination'] : 'admin/build/finder/' . $finder->finder_id . '/edit', t('This action cannot be undone.'), t('Delete'), t('Cancel'));
}