You are here

function panels_flexible_get_sublayouts in Panels 7.3

Same name and namespace in other branches
  1. 6.3 plugins/layouts/flexible/flexible.inc \panels_flexible_get_sublayouts()

Callback to provide all stored flexible layouts.

1 string reference to 'panels_flexible_get_sublayouts'
flexible.inc in plugins/layouts/flexible/flexible.inc
Flexible layout plugin.

File

plugins/layouts/flexible/flexible.inc, line 74
Flexible layout plugin.

Code

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