function blocktheme_get_theme in Block Theme 7
Same name and namespace in other branches
- 8 blocktheme.module \blocktheme_get_theme()
- 5 blocktheme.module \blocktheme_get_theme()
- 6 blocktheme.module \blocktheme_get_theme()
Get custom theme for a block.
1 call to blocktheme_get_theme()
- blocktheme_preprocess_block in ./
blocktheme.module - Implements hook_preprocess_block().
File
- ./
blocktheme.module, line 296 - 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];
}
}