function layout_default_layout_region in Layout 7
Implementation of hook_default_layout_region().
Provide a couple of default regions.
File
- ./
layout.module, line 132 - Responsive layout builder tool for Panels.
Code
function layout_default_layout_region() {
$export = array();
$base_regions = array(
'header_a' => 'Header A',
'header_b' => 'Header B',
'header_c' => 'Header C',
'subheader_a' => 'Subheader A',
'subheader_b' => 'Subheader B',
'subheader_c' => 'Subheader C',
'navigation' => 'Navigation',
'title' => 'Title',
'body' => 'Body',
'sidebar_a' => 'Sidebar A',
'sidebar_b' => 'Sidebar B',
'sidebar_c' => 'Sidebar C',
'footer_a' => 'Footer A',
'footer_b' => 'Footer B',
'footer_c' => 'Footer C',
);
foreach ($base_regions as $name => $admin_title) {
$region = new stdClass();
$region->api_version = 1;
$region->name = $name;
$region->admin_title = $admin_title;
$export[$name] = $region;
}
return $export;
}