You are here

function blocktheme_get_theme_vars in Block Theme 7

Same name and namespace in other branches
  1. 8 blocktheme.module \blocktheme_get_theme_vars()
  2. 6 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 307
Provides a configuration option to select custom themes for blocks

Code

function blocktheme_get_theme_vars($block) {
  $blocktheme_vars = blocktheme_get_vars();
  $var_name = $block->module . '-' . $block->delta;
  if (isset($blocktheme_vars[$var_name])) {
    return $blocktheme_vars[$var_name];
  }
}