function _olebs_get_map_name in Openlayers 7.3
Helper function that return the map name according to the block delta.
Parameters
string $delta: The block delta.
Return value
string The map name.
1 call to _olebs_get_map_name()
- openlayers_block_switcher_block_view in modules/
openlayers_block_switcher/ openlayers_block_switcher.module - Implements hook_block_view().
File
- modules/
openlayers_block_switcher/ openlayers_block_switcher.module, line 81 - Openlayers Block Switcher.
Code
function _olebs_get_map_name($delta) {
foreach (_olebs_get_maps_with_blockswitcher() as $map) {
if (_olebs_get_block_id($map
->getMachineName()) == $delta) {
return $map
->getMachineName();
}
}
return FALSE;
}