You are here

function context_layouts_get_active_layout in Context 7.3

Same name and namespace in other branches
  1. 6.3 context_layouts/context_layouts.module \context_layouts_get_active_layout()
  2. 6 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 127

Code

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