You are here

function layout_responsive_get_sublayouts in Layout 7

Callback to provide all stored responsive layouts.

1 string reference to 'layout_responsive_get_sublayouts'
responsive.inc in plugins/layouts/responsive.inc

File

plugins/layouts/responsive.inc, line 126

Code

function layout_responsive_get_sublayouts($plugin, $layout_name) {
  $layouts[$layout_name] = $plugin;
  ctools_include('export');
  $items = ctools_export_load_object('panels_layout', 'conditions', array(
    'plugin' => 'responsive',
  ));
  foreach ($items as $name => $item) {
    $layouts['responsive:' . $name] = layout_responsive_merge_plugin($plugin, $item);
  }
  return $layouts;
}