You are here

function blocktheme_get_theme in Block Theme 8

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

Get custom theme for a block.

3 calls to blocktheme_get_theme()
blocktheme_get_theme_name in ./blocktheme.module
Get template name of block.
blocktheme_preprocess_block in ./blocktheme.module
Implements hook_preprocess_block().
blocktheme_theme_suggestions_block in ./blocktheme.module
Implements hook_theme_suggestions_HOOK().

File

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

Code

function blocktheme_get_theme($block) {
  $blocktheme = blocktheme_get();
  if (isset($blocktheme[$block])) {
    return $blocktheme[$block];
  }
  return NULL;
}