You are here

function openlayers_layer_delete in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 openlayers.module \openlayers_layer_delete()

Delete a layer object from the database.

Parameters

$preset: String identifier of a layer or layer object with name.

Return value

The results of DB delete.

1 call to openlayers_layer_delete()
openlayers_ui_object_delete_submit in modules/openlayers_ui/openlayers_ui.module
Form Submit Callback for Preset Delete Form

File

./openlayers.module, line 416
Main OpenLayers API File

Code

function openlayers_layer_delete($layer) {
  return openlayers_object_delete($layer, 'layer');
}