You are here

function eck__entity_type__delete_form in Entity Construction Kit (ECK) 7

Same name and namespace in other branches
  1. 7.3 eck.entity_type.inc \eck__entity_type__delete_form()
  2. 7.2 eck.entity_type.inc \eck__entity_type__delete_form()
1 string reference to 'eck__entity_type__delete_form'
eck__bundle__menu in ./eck.bundle.inc
This function creates the menu items relevant to bundle administration

File

./eck.entity_type.inc, line 464
ENTITY TYPE

Code

function eck__entity_type__delete_form($form, &$state, $entity_type) {
  $form['entity_type'] = array(
    '#type' => 'value',
    '#value' => $entity_type,
  );
  $form['submit_redirect'] = array(
    '#type' => 'value',
    '#value' => "admin/structure/eck",
  );
  $message = t("Are you sure that you want to delete the entity type '{$entity_type->name}'");
  $caption = t("All of the data (entities and bundles) from this entity type \n  will be deleted. This action cannot be undone.");
  return confirm_form($form, $message, "admin/structure/eck", $caption, t('Delete'));
}