function layout_get_responsive_layouts in Layout 7
Get all responsive layout info arrays from panels.
1 call to layout_get_responsive_layouts()
- layout_get_layouts_using_region in ./
layout.module - Get a list of layout names using the given region machine name.
File
- ./
layout.module, line 338 - Responsive layout builder tool for Panels.
Code
function layout_get_responsive_layouts() {
ctools_include('plugins', 'panels');
$all_layouts = panels_get_layouts();
$responsive_layouts = array();
foreach ($all_layouts as $name => $data) {
if (empty($data['builder']) && isset($data['layout']->plugin) && $data['layout']->plugin == 'responsive') {
$responsive_layouts[$name] = $data;
}
}
return $responsive_layouts;
}