You are here

function context_layouts_reaction_block::add_layout_template in Context 6

Same name and namespace in other branches
  1. 6.3 context_layouts/plugins/context_layouts_reaction_block.inc \context_layouts_reaction_block::add_layout_template()
  2. 7.3 context_layouts/plugins/context_layouts_reaction_block.inc \context_layouts_reaction_block::add_layout_template()

Add the layout template to page vars.

File

context_layouts/plugins/context_layouts_reaction_block.inc, line 40

Class

context_layouts_reaction_block

Code

function add_layout_template(&$vars) {
  if ($layout = $this
    ->get_active_layout()) {
    if (!empty($layout['template'])) {
      $vars['template_files'][] = $layout['template'];
    }
  }
}