function _openlayers_block_get_block_id in Openlayers 7.3
Helper function that returns the blocks delta according to the map_name.
Parameters
string $map_machine_name: The name of the map.
Return value
string The block delta.
3 calls to _openlayers_block_get_block_id()
- OpenlayersMaps::delete_form_submit in modules/
openlayers_ui/ src/ Plugin/ export_ui/ OpenlayersMaps.php - openlayers_block_block_info in modules/
openlayers_block/ openlayers_block.module - Implements hook_block_info().
- _openlayers_block_get_map in modules/
openlayers_block/ openlayers_block.module - Helper function return the map name according to the block delta.
File
- modules/
openlayers_block/ openlayers_block.module, line 49 - Openlayers Block module.
Code
function _openlayers_block_get_block_id($map_machine_name) {
return substr(sha1($map_machine_name), 0, -32) . '_mapblock';
}