function context_layouts_reaction_block::add_layout_stylesheet in Context 7.3
Same name and namespace in other branches
- 6.3 context_layouts/plugins/context_layouts_reaction_block.inc \context_layouts_reaction_block::add_layout_stylesheet()
- 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
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']);
}
}
}