You are here

function openlayers_views_style_data::datasource_dependent in Openlayers 7.2

Basically a macro because #state is rather verbose

openlayers_views_style_data specific

1 call to openlayers_views_style_data::datasource_dependent()
openlayers_views_style_data::options_form in modules/openlayers_views/views/openlayers_views_style_data.inc
Options form

File

modules/openlayers_views/views/openlayers_views_style_data.inc, line 375
This file holds style plugin for OpenLayers Views

Class

openlayers_views_style_data
@class Extension of the Views Plugin Style for OpenLayers

Code

function datasource_dependent($type) {
  return array(
    'visible' => array(
      '#edit-style-options-data-source-value' => array(
        'value' => $type,
      ),
    ),
  );
}