You are here

function spaces_preprocess_block in Spaces 6

Same name and namespace in other branches
  1. 6.2 spaces.module \spaces_preprocess_block()

theme_block() preprocessor.

File

./spaces.module, line 1836

Code

function spaces_preprocess_block(&$vars) {
  $space = spaces_get_space();
  if ($feature = context_get('spaces', 'feature')) {
    if (!empty($vars['block'])) {
      space_customizer_block::customize_subject($space, $feature, $vars['block']);
    }
  }
}