You are here

function blocktheme_get in Block Theme 6

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

Get Block Theme custom block settings.

5 calls to blocktheme_get()
blocktheme_form_block_admin_configure_alter in ./blocktheme.module
Form for updating a block.
blocktheme_get_theme in ./blocktheme.module
Get custom theme for a block.
blocktheme_preprocess_block_admin_display_form in ./blocktheme.module
Implementation of template_preprocess_block_admin_display_form().
blocktheme_save in ./blocktheme.module
Save a new block after form was submitted.
blocktheme_update in ./blocktheme.module
Update an existing block after the block form has been submitted.

File

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

Code

function blocktheme_get() {
  static $blocktheme;
  if (empty($blocktheme)) {
    $blocktheme = variable_get('blocktheme', array());
  }
  return $blocktheme;
}