function layout_get_layouts_using_region in Layout 7
Get a list of layout names using the given region machine name.
2 calls to layout_get_layouts_using_region()
- layout_admin_region_delete in ./
layout.admin.regions.inc - Page callback for region deletion.
- layout_admin_region_list_form in ./
layout.admin.regions.inc - Form callback to generate region list overview form.
File
- ./
layout.module, line 198 - Responsive layout builder tool for Panels.
Code
function layout_get_layouts_using_region($name) {
$layouts = layout_get_responsive_layouts();
$layouts_using_region = array();
foreach ($layouts as $data) {
if (isset($data['layout']->settings['regions']) && is_array($data['layout']->settings['regions']) && isset($data['layout']->settings['regions'][$name])) {
$layouts_using_region[$data['layout']->name] = $data['title'];
}
}
return $layouts_using_region;
}