You are here

function om_block_preprocess_block in OM Tools 8.2

Same name and namespace in other branches
  1. 6.2 tools/block/block.inc \om_block_preprocess_block()
  2. 7.2 tools/block/block.inc \om_block_preprocess_block()

Override or insert om variables into the templates.

File

tools/block/block.inc, line 46
Block Tools

Code

function om_block_preprocess_block(&$vars) {
  $block = $vars['block'];
  $block_defaults = $vars['om_block_tools_values'];

  //dsm($block);
  if (isset($block_defaults['block_classes_switch']) && $block_defaults['block_classes_switch'] == 1) {
    if (isset($block_defaults['block_classes___' . $block->module . '___' . $block->delta])) {
      $vars['classes_array'][] = $block_defaults['block_classes___' . $block->module . '___' . $block->delta];
    }
  }
}