You are here

function flexiform_entity_remove_form_submit in Flexiform 7

Form submit for removing entities.

File

./flexiform.admin.inc, line 2171
Model type editing UI.

Code

function flexiform_entity_remove_form_submit($form, &$form_state) {
  $flexiform = $form['#flexiform'];
  $entity_namespace = $form['#entity_namespace'];
  $flexiform
    ->getBuilder()
    ->getEntityManager()
    ->removeEntitySettings($entity_namespace);
  $form_state['redirect'] = "admin/structure/flexiforms/manage/{$flexiform->form}/form-entities";
}