You are here

function classy_panel_styles_preprocess_panels_pane in Classy Panel Styles 7

Implements MODULE_preprocess_HOOK() for panels_pane.

It would be cleaner to just preprocess the CPS pane theme hook, but that doesn't work because Panels overwrites the 'classes_array' variable, grr!

File

plugins/styles/classy_panel_styles/classy_panel_styles.inc, line 24
Classy Panel Styles plugin file.

Code

function classy_panel_styles_preprocess_panels_pane(&$vars) {
  if (isset($vars['pane']->style['style']) && _classy_panel_styles_is($vars['pane']->style['style'])) {
    _classy_panel_styles_preprocess($vars, $vars['classes_array'], 'pane', $vars['pane']->pid);
  }
}