You are here

function apigee_edge_preprocess_fieldset in Apigee Edge 8

Implements hook_preprocess_HOOK().

File

./apigee_edge.module, line 1824
Copyright 2018 Google Inc.

Code

function apigee_edge_preprocess_fieldset(&$variables) {

  // @todo This is a temporary fix for core issue #3174459.
  if ($variables['required'] == true) {
    if ($variables['attributes']['required']) {
      unset($variables['attributes']['required']);
    }
    if ($variables['attributes']['aria-required']) {
      unset($variables['attributes']['aria-required']);
    }
  }
}