You are here

function eck__bundle__delete_form_submit in Entity Construction Kit (ECK) 7

Same name and namespace in other branches
  1. 7.3 eck.bundle.inc \eck__bundle__delete_form_submit()
  2. 7.2 eck.bundle.inc \eck__bundle__delete_form_submit()

Sumbmit function for the delete functionality

Parameters

$form: Form array provided by the Form API

$form_state: array provided by the Form API

File

./eck.bundle.inc, line 309
All of the menu, pages, and forms related to bundle administration.

Code

function eck__bundle__delete_form_submit($form, &$form_state) {
  $entity_type = $form_state['values']['entity_type'];
  $bundle = $form_state['values']['bundle'];
  $submit_redirect = $form_state['values']['submit_redirect'];
  eck__bundle__delete($entity_type, $bundle);

  // Ok, lets delete the entity
  $form_state['redirect'] = $submit_redirect;
}