You are here

function taxonomy_display_field_ui_layouts_validate in Taxonomy display 7

Validate handler; Move the view modes so Field UI can handle them.

Modified from Display Suite since we are using the same form set.

1 string reference to 'taxonomy_display_field_ui_layouts_validate'
taxonomy_display_admin_form_setup_additional_settings in ./taxonomy_display.admin.inc
Helper function; provide same form setup for compatibility as Display Suite.

File

./taxonomy_display.admin.inc, line 191
Administration form functions for taxonomy display configuration.

Code

function taxonomy_display_field_ui_layouts_validate($form, &$form_state) {
  if (isset($form_state['values']['additional_settings']['modes']['view_modes_custom'])) {
    $form_state['values']['view_modes_custom'] = $form_state['values']['additional_settings']['modes']['view_modes_custom'];
  }
}