You are here

function openlayers_layer_type_cloudmade::settings_form in Openlayers 6.2

Same name and namespace in other branches
  1. 7.2 plugins/layer_types/openlayers_layer_type_cloudmade.inc \openlayers_layer_type_cloudmade::settings_form()

Layer-type-wide settings form

File

includes/layer_types/cloudmade.inc, line 66
OpenLayers CloudMade layer type

Class

openlayers_layer_type_cloudmade
OpenLayers CloudMade Layer Type class

Code

function settings_form() {
  return array(
    'openlayers_layers_cloudmade_api' => array(
      '#type' => 'textfield',
      '#title' => t('CloudMade API Key'),
      '#default_value' => variable_get('openlayers_layers_cloudmade_api', ''),
      '#description' => t('<a href="@cloudmade">Get a CloudMade account and API Key</a>', array(
        '@cloudmade' => 'http://cloudmade.com/user/show',
      )),
    ),
    'openlayers_layers_cloudmade_js' => array(
      '#type' => 'textfield',
      '#title' => t('CloudMade Javascript Location'),
      '#default_value' => variable_get('openlayers_layers_cloudmade_js', ''),
      '#description' => t('The Drupal path or full URL to the location of the ' . '<a href="@url">Cloudmade OpenLayers Javascript library</a>', array(
        '@url' => 'http://developers.cloudmade.com/projects/show/openlayers-api',
      )),
    ),
  );
}