You are here

function seven_element_info_alter in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/themes/seven/seven.theme \seven_element_info_alter()

Implements hook_element_info_alter().

File

core/themes/seven/seven.theme, line 124
Functions to support theming in the Seven theme.

Code

function seven_element_info_alter(&$type) {

  // We require Modernizr for button styling.
  if (isset($type['button'])) {
    $type['button']['#attached']['library'][] = 'core/modernizr';
  }
}