You are here

function _ds_field_ui_check_hidden_region in Display Suite 7.2

Helper function to check if we are in a hidden region or not.

2 calls to _ds_field_ui_check_hidden_region()
_ds_field_ui_core_fields in includes/ds.field_ui.inc
Alter the core field on the the Field UI form.
_ds_field_ui_fields in includes/ds.field_ui.inc
Add the fields to the Field UI form.

File

includes/ds.field_ui.inc, line 2416
Field UI functions for Display Suite.

Code

function _ds_field_ui_check_hidden_region($key, $form_state, $field_regions) {
  $continue = FALSE;
  if (isset($form_state['input']['fields'][$key]['region'])) {
    if ($form_state['input']['fields'][$key]['region'] == 'hidden') {
      $continue = TRUE;
    }
  }
  elseif (!isset($field_regions[$key]) || $field_regions[$key] == 'hidden') {
    $continue = TRUE;
  }
  return $continue;
}