You are here

function finder_ui_element_delete_form in Finder 7.2

Finder UI element delete form.

Parameters

$form: The form array.

&$form_state: The form state array.

Return value

The form array.

1 string reference to 'finder_ui_element_delete_form'
finder_ui_element_delete_page in modules/finder_ui/includes/element.inc
Finder UI element delete page.

File

modules/finder_ui/includes/element.inc, line 249

Code

function finder_ui_element_delete_form($form, &$form_state) {
  $feid =& $form_state['feid'];
  $finder =& $form_state['finder'];
  $element =& $finder->elements[$feid];
  if (finder_ui_check_lock($finder)) {
    $form = confirm_form($form, t('Are you sure you want to delete %title?', array(
      '%title' => check_plain($element->title),
    )), NULL, '');
  }
  $form['actions']['cancel'] = array(
    '#type' => 'submit',
    '#value' => t('Cancel'),
  );
  $form['#pre_render'] = array(
    'finder_ui_modal_form_pre_render',
  );
  return $form;
}