function panels_flexible_merge_plugin in Panels 6.3
Same name and namespace in other branches
- 7.3 plugins/layouts/flexible/flexible.inc \panels_flexible_merge_plugin()
Merge the main flexible plugin with a layout to create a sub plugin.
This is used for both panels_flexible_get_sublayout and panels_flexible_get_sublayouts.
2 calls to panels_flexible_merge_plugin()
- panels_flexible_get_sublayout in plugins/
layouts/ flexible/ flexible.inc - Callback to provide a single stored flexible layout.
- panels_flexible_get_sublayouts in plugins/
layouts/ flexible/ flexible.inc - Callback to provide all stored flexible layouts.
File
- plugins/
layouts/ flexible/ flexible.inc, line 44
Code
function panels_flexible_merge_plugin($plugin, $layout) {
$plugin['name'] = 'flexible:' . $layout->name;
$plugin['category'] = !empty($layout->category) ? check_plain($layout->category) : t('Miscellaneous');
$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;
}