function openlayers_layer_type_load in Openlayers 7.2
Same name and namespace in other branches
- 6.2 openlayers.module \openlayers_layer_type_load()
Menu loader for layer types.
Parameters
$name: String identifier of layer type.
$reset: Boolean whether to reset cache or not.
Return value
openlayers_layer_type An instantiated layer type object or FALSE if not found.
5 calls to openlayers_layer_type_load()
- openlayers_layers_ui::delete_form_submit in modules/
openlayers_ui/ plugins/ export_ui/ openlayers_layers_ui.class.php - Deletes exportable items from the database.
- openlayers_layers_ui::edit_form in modules/
openlayers_ui/ plugins/ export_ui/ openlayers_layers_ui.class.php - Provide the actual editing form.
- openlayers_layers_ui::edit_form_submit in modules/
openlayers_ui/ plugins/ export_ui/ openlayers_layers_ui.class.php - Prepare the tag values before they are added to the database.
- openlayers_layers_ui::edit_form_validate in modules/
openlayers_ui/ plugins/ export_ui/ openlayers_layers_ui.class.php - Validate callback for the edit form.
- openlayers_ui_layers_settings in modules/
openlayers_ui/ includes/ openlayers_ui.layers.inc - Layer-wide-settings form
File
- ./
openlayers.module, line 669 - Main OpenLayers API File
Code
function openlayers_layer_type_load($name, $reset = FALSE) {
ctools_include('plugins');
if ($layer_type_class = ctools_plugin_load_class('openlayers', 'layer_types', $name, 'layer_type')) {
$layer_type = new $layer_type_class();
return $layer_type;
}
return FALSE;
}