You are here

function template_preprocess_context_block_editable_region in Context 6.3

Same name and namespace in other branches
  1. 6 theme/context_reaction_block.theme.inc \template_preprocess_context_block_editable_region()

Preprocessor for theme('context_block_editable_region').

File

theme/context_reaction_block.theme.inc, line 101

Code

function template_preprocess_context_block_editable_region(&$vars) {
  if (!empty($vars['editable'])) {

    // Show when empty?
    $vars['show_always'] = variable_get('context_reaction_block_all_regions', FALSE);

    // Provide the user-friendly name of the region
    global $theme_key;
    $regions = system_region_list($theme_key);
    $vars['region_description'] = isset($regions[$vars['region']]) ? $regions[$vars['region']] : $vars['region'];
  }
}