function tripal_entity_delete_form

3.x TripalEntityUIController.inc tripal_entity_delete_form($form, &$form_state, $entity)

Form callback: confirmation form for deleting a tripal_entity.

Parameters

$tripal_entity The: tripal_entity to delete

See also

confirm_form()

1 string reference to 'tripal_entity_delete_form'
TripalEntityUIController::hook_menu in tripal/includes/TripalEntityUIController.inc
Overrides hook_menu() defaults. Main reason for doing this is that parent class hook_menu() is optimized for entity type administration.

File

tripal/includes/TripalEntityUIController.inc, line 747

Code

function tripal_entity_delete_form($form, &$form_state, $entity) {
  $form_state['entity'] = $entity;
  $form['#submit'][] = 'tripal_entity_delete_form_submit';

  $form = confirm_form($form, 
  t('Click the delete button below to confirm deletion of the record titled: %title', 
  array('%title' => $entity->title)), 'admin/content/tripal_entity', 
  '<p>' . t('This action cannot be undone.') . '</p>', t('Delete'), t('Cancel'), 'confirm');

  return $form;
}