You are here

function context_layouts_get_active_layout in Context 6

Same name and namespace in other branches
  1. 6.3 context_layouts/context_layouts.module \context_layouts_get_active_layout()
  2. 7.3 context_layouts/context_layouts.module \context_layouts_get_active_layout()

Get the active layout for the current page.

File

context_layouts/context_layouts.module, line 103

Code

function context_layouts_get_active_layout($info = TRUE) {
  $plugin = context_get_plugin('reaction', 'block');
  if ($plugin && method_exists($plugin, 'add_layout_stylesheet')) {
    return $plugin
      ->get_active_layout($info);
  }
}