You are here

function space_customizer_block::customize_subject in Spaces 6

Same name and namespace in other branches
  1. 6.2 spaces.spaces.inc \space_customizer_block::customize_subject()

Additional method: customize_subject() for customizing a block subject.

1 call to space_customizer_block::customize_subject()
spaces_preprocess_block in ./spaces.module
theme_block() preprocessor.

File

./spaces.module, line 878

Class

space_customizer_block
Customizer for feature blocks.

Code

function customize_subject($space, $feature, &$block) {
  if (!empty($space->customizer[$feature]['block'])) {
    $customizer = $space->customizer[$feature]['block'];
    $bid = "{$block->module}-{$block->delta}";
    if (!empty($customizer[$block->region][$bid]['subject'])) {
      $block->subject = $customizer[$block->region][$bid]['subject'];
    }
  }
}