You are here

function om_block_preprocess_block in OM Tools 6.2

Same name and namespace in other branches
  1. 8.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 ($block_defaults['block_classes_switch']) {
    if (isset($block_defaults['block_classes___' . $block->module . '___' . $block->delta])) {
      $vars['om_block_classes'] = $block_defaults['block_classes___' . $block->module . '___' . $block->delta];
    }
  }
}