You are here

function boxes_preprocess_panels_pane in Boxes 7

Preprocessor for theme('panels_pane').

File

./boxes.module, line 847
Core functionality for boxes module.

Code

function boxes_preprocess_panels_pane(&$vars) {
  if ($vars['pane']->type == 'block') {
    list($module, $delta) = explode('-', $vars['pane']->subtype, 2);
    if ($module == 'boxes') {

      // Load up the actual box to check for additional classes.
      $box = boxes_box_load($delta);
      if (isset($box->plugin_key)) {
        $vars['classes_array'][] = 'block-boxes-' . $box->plugin_key;
      }
      if (isset($box->options['additional_classes'])) {
        $vars['classes_array'] = array_merge($vars['classes_array'], explode(' ', $box->options['additional_classes']));
      }
    }
  }
}