You are here

function blocktheme_get_theme_name in Block Theme 8

Get template name of block.

1 call to blocktheme_get_theme_name()
blocktheme_form_block_admin_display_form_alter in ./blocktheme.module
Add new column with name of template to the blocks list page.

File

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

Code

function blocktheme_get_theme_name($block) {
  $blockthemes = blocktheme_get_blockthemes();
  $template = blocktheme_get_theme($block);
  if (!empty($blockthemes[$template])) {
    $blocktheme_name = $blockthemes[$template];
    return $blocktheme_name;
  }
  return NULL;
}