You are here

function _olebs_get_block_id in Openlayers 7.3

Helper function that return the blocks delta according to the map_name.

Parameters

string $map_name: The map name.

Return value

string The block id.

2 calls to _olebs_get_block_id()
openlayers_block_switcher_block_info in modules/openlayers_block_switcher/openlayers_block_switcher.module
Implements hook_block_info().
_olebs_get_map_name in modules/openlayers_block_switcher/openlayers_block_switcher.module
Helper function that return the map name according to the block delta.

File

modules/openlayers_block_switcher/openlayers_block_switcher.module, line 68
Openlayers Block Switcher.

Code

function _olebs_get_block_id($map_name) {
  return substr(sha1($map_name), 0, -32) . '_blockswitcher';
}