You are here

function blocktheme_get_theme in Block Theme 5

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

File

./blocktheme.module, line 94

Code

function blocktheme_get_theme(&$block) {
  $blocktheme = blocktheme_get();

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