function seven_element_info_alter
Same name in other branches
- 9 core/themes/seven/seven.theme \seven_element_info_alter()
Implements hook_element_info_alter().
File
-
core/
themes/ seven/ seven.theme, line 128
Code
function seven_element_info_alter(&$type) {
// We require Modernizr for button styling.
if (isset($type['button'])) {
$type['button']['#attached']['library'][] = 'core/modernizr';
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.