You are here

function context_layouts_reaction_block::add_layout_stylesheet in Context 7.3

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

Add the layout stylesheet to the CSS.

File

context_layouts/plugins/context_layouts_reaction_block.inc, line 52

Class

context_layouts_reaction_block

Code

function add_layout_stylesheet() {
  if ($layout = $this
    ->get_active_layout()) {
    if (!empty($layout['stylesheet'])) {
      drupal_add_css(drupal_get_path('theme', $layout['theme']) . '/' . $layout['stylesheet']);
    }
  }
}