You are here

function openlayers_test_openlayers_map_alter in Openlayers 7.2

Same name and namespace in other branches
  1. 6.2 tests/openlayers_test.module \openlayers_test_openlayers_map_alter()

Impements hook_openlayers_map_alter().

File

tests/openlayers_test.module, line 118
Main OpenLayers Test Module file

Code

function openlayers_test_openlayers_map_alter(&$map) {

  // For testing purposes, display a message on the only the Test
  // page, and only once.
  static $performed = FALSE;
  if (!$performed && $_GET['q'] == 'admin/structure/openlayers/test') {
    drupal_set_message(t('OpenLayers map alter hook fired.'));
    $performed = TRUE;
  }
}