You are here

function multiblock_preprocess_block in MultiBlock 7

Implements hook_preprocess_block().

Add "{orig_module}" and "{orig_module}-{orig_delta}-instance" classes to multiblock blocks.

File

./multiblock.module, line 404
Enhances the block API, as provided by D7 Core.

Code

function multiblock_preprocess_block(&$variables) {
  if ($variables['block']->module == 'multiblock') {
    $variables['classes_array'][] = drupal_html_class('block-' . $variables['block']->orig_module);
    $variables['classes_array'][] = drupal_html_class('block-' . $variables['block']->orig_module) . '-' . $variables['block']->orig_delta . '-instance';
  }
}