You are here

function flexiform_field_remove_form in Flexiform 7

Remove a flexiform field

1 string reference to 'flexiform_field_remove_form'
FlexiformUIController::hook_menu in ./flexiform.admin.inc
Overrides hook_menu() defaults.

File

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

Code

function flexiform_field_remove_form($form, &$form_state, $flexiform, $element_namespace) {
  $element = FlexiformElement::getElement($flexiform, $element_namespace);
  $form['#flexiform'] = $flexiform;
  $form['#flexiform_element'] = $element;
  return $element
    ->removeForm($form, $form_state, $flexiform);
}