You are here

function panopoly_core_element_info_alter in Panopoly Core 7

Implementation hook_element_info_alter().

File

./panopoly_core.module, line 132

Code

function panopoly_core_element_info_alter(&$type) {

  // Rather than implementing hook_css_alter(), we'll add a custom pre render
  // function for the styles elemement. This is to allow us to override
  // seven_css_alter(), which always runs after any module's implementation.
  if (isset($type['styles']['#pre_render'])) {
    array_unshift($type['styles']['#pre_render'], 'panopoly_core_pre_render_styles');
  }
}