You are here

function blocktheme_get_theme in Block Theme 6

Same name and namespace in other branches
  1. 8 blocktheme.module \blocktheme_get_theme()
  2. 5 blocktheme.module \blocktheme_get_theme()
  3. 7 blocktheme.module \blocktheme_get_theme()

Get custom theme for a block.

1 call to blocktheme_get_theme()
blocktheme_preprocess_block in ./blocktheme.module
Implementation of hook_preprocess_block().

File

./blocktheme.module, line 280
Provides a configuration option to select custom themes for blocks

Code

function blocktheme_get_theme($block) {
  $blocktheme = blocktheme_get();
  $var_name = $block->module . '-' . $block->delta;
  if (isset($blocktheme[$var_name])) {
    return $blocktheme[$var_name];
  }
}