function openlayers_maps in Openlayers 7.2
Get maps from DB or code, via cache.
Parameters
$reset: Boolean whether to reset or not.
Return value
Return array of maps.
6 calls to openlayers_maps()
- openlayers_map_options in ./
openlayers.module - Get map options in an array suitable for a FormAPI element.
- openlayers_openlayers_map_content_type_content_types in plugins/
content_types/ openlayers_map.inc - Return all content types available.
- openlayers_presets in ./
openlayers.module - openlayers_test_show_maps in tests/
includes/ openlayers_test.pages.inc - Callback for OpenLayers Test Show Maps Page
- openlayers_update_7207 in ./
openlayers.install - Migrate configured projections so that other projections than those of EPSG can be used, too.
11 string references to 'openlayers_maps'
- openlayers_ctools_plugin_api in ./
openlayers.module - Implements hook_ctools_plugin_api().
- openlayers_example_ctools_plugin_api in docs/
openlayers.api.php - CTools Registration Hook
- openlayers_map_load in ./
openlayers.module - Given a map name, get full map object.
- openlayers_map_save in ./
openlayers.module - Save a map object to the database.
- openlayers_object_delete in ./
openlayers.module - Delete an object from the database.
File
- ./
openlayers.module, line 797 - Main OpenLayers API File
Code
function openlayers_maps($reset = FALSE, $include_disabled = FALSE) {
ctools_include('export');
if ($reset) {
ctools_export_load_object_reset('openlayers_maps');
}
$maps = ctools_export_load_object('openlayers_maps', 'all', array());
if (!$include_disabled) {
$maps = array_filter($maps, 'openlayers_object_enabled');
}
return $maps;
}