You are here

function openlayers_object_enabled in Openlayers 7.2

Confirm that an object is not disabled.

Parameters

Object $object: An object -- a layer, behavior, style or map.

Return value

Boolean Returns TRUE if the object is not disabled.

4 string references to 'openlayers_object_enabled'
openlayers_behaviors in ./openlayers.module
Get all behaviors.
openlayers_layer_types in ./openlayers.module
Get all layer types.
openlayers_maps in ./openlayers.module
Get maps from DB or code, via cache.
openlayers_styles in ./openlayers.module
Get all openlayers styles.

File

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

Code

function openlayers_object_enabled($object) {
  return !isset($object->disabled) || !$object->disabled;
}