You are here

function blocktheme_get_theme_vars in Block Theme 8

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

Get custom variables for a block.

1 call to blocktheme_get_theme_vars()
blocktheme_preprocess_block in ./blocktheme.module
Implements hook_preprocess_block().

File

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

Code

function blocktheme_get_theme_vars($block) {
  $blocktheme_vars = blocktheme_get_vars();
  if (!empty($blocktheme_vars[$block])) {
    return $blocktheme_vars[$block];
  }
  return NULL;
}