You are here

function layout_responsive_merge_plugin in Layout 7

Merge the main responsive plugin with a layout to create a sub plugin.

This is used for both layout_responsive_get_sublayout and layout_responsive_get_sublayouts.

2 calls to layout_responsive_merge_plugin()
layout_responsive_get_sublayout in plugins/layouts/responsive.inc
Callback to provide a single stored responsive layout.
layout_responsive_get_sublayouts in plugins/layouts/responsive.inc
Callback to provide all stored responsive layouts.

File

plugins/layouts/responsive.inc, line 100

Code

function layout_responsive_merge_plugin($plugin, $layout) {
  $plugin['name'] = 'responsive:' . $layout->name;
  $plugin['category'] = !empty($layout->category) ? check_plain($layout->category) : t('Responsive');
  $plugin['title'] = check_plain($layout->admin_title);
  $plugin['description'] = check_plain($layout->admin_description);
  $plugin['layout'] = $layout;
  $plugin['builder'] = FALSE;
  $plugin['builder tab title'] = NULL;
  return $plugin;
}