Commit 9bab7f62 authored by Dries's avatar Dries

- Patch #778608 by Gábor Hojtsy: default theme region can be hidden.

parent 80f911c9
......@@ -2557,7 +2557,7 @@ function system_system_info_alter(&$info, $file, $type) {
* A string that is the region name.
*/
function system_default_region($theme) {
$regions = array_keys(system_region_list($theme));
$regions = array_keys(system_region_list($theme, REGIONS_VISIBLE));
return isset($regions[0]) ? $regions[0] : '';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment