You are here

function boxes_preprocess_block in Boxes 7

Preprocessor for theme('block').

File

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

Code

function boxes_preprocess_block(&$vars) {
  $vars['classes_array'] = isset($vars['classes_array']) ? $vars['classes_array'] : array();
  if ($vars['block']->module === 'boxes') {
  }
  if ($vars['block']->module === 'boxes' && isset($vars['block']->boxes_plugin)) {
    $vars['classes_array'][] = 'block-boxes-' . $vars['block']->boxes_plugin;
  }
  if ($vars['block']->module === 'boxes' && isset($vars['block']->additional_classes)) {
    $vars['classes_array'] = array_merge($vars['classes_array'], explode(' ', $vars['block']->additional_classes));
  }
}