You are here

public function FlexiformElement::removeFormSubmit in Flexiform 7

Submit the remove form for the element.

File

includes/flexiform.element.inc, line 281
Controller class for flexiform elements.

Class

FlexiformElement
Base class for all FlexiformElements

Code

public function removeFormSubmit($form, &$form_state, $flexiform) {
  $flexiform
    ->removeElement($this);
  $flexiform
    ->save();
  $form_state['redirect'] = 'admin/structure/flexiforms/manage/' . $flexiform->form . '/form-fields';
}