function ds_extras_region_to_block_unique in Display Suite 7
Same name and namespace in other branches
- 8.2 modules/ds_extras/ds_extras.module \ds_extras_region_to_block_unique()
- 8.3 modules/ds_extras/ds_extras.module \ds_extras_region_to_block_unique()
- 7.2 modules/ds_extras/includes/ds_extras.admin.inc \ds_extras_region_to_block_unique()
Return unique region to block.
1 string reference to 'ds_extras_region_to_block_unique'
- ds_extras_field_ui_alter in modules/
ds_extras/ ds_extras.admin.inc - Alter Manage display screen.
File
- modules/
ds_extras/ ds_extras.admin.inc, line 669 - Display Suite Extras administrative functions.
Code
function ds_extras_region_to_block_unique($name) {
$region_blocks = variable_get('ds_extras_region_blocks', array());
$value = strtr($name, array(
'-' => '_',
));
return isset($region_blocks[$value]) ? TRUE : FALSE;
}