function ds_prepare_regions_configuration in Display Suite 7.2
Same name and namespace in other branches
- 8.2 drush/ds.drush.inc \ds_prepare_regions_configuration()
- 8.3 drush/ds.drush.inc \ds_prepare_regions_configuration()
- 7 ds.drush.inc \ds_prepare_regions_configuration()
Prepare configuration for an array of regions.
1 call to ds_prepare_regions_configuration()
- drush_ds_build in drush/
ds.drush.inc - Create a basic template and configuration file for a new Display Suite layout.
File
- drush/
ds.drush.inc, line 189 - Display Suite drush integration.
Code
function ds_prepare_regions_configuration($region_names) {
$output = array();
foreach ($region_names as $name) {
$machine_name = ds_prepare_machine_name($name);
$output[] = " '{$machine_name}' => t('{$name}'),";
}
return implode("\n", $output);
}