You are here

function views_plugin_style_kml::option_definition in KML 6.2

Same name and namespace in other branches
  1. 7 views/views_plugin_style_kml.inc \views_plugin_style_kml::option_definition()

File

views/views_plugin_style_kml.inc, line 35
Extending the view_plugin_style class to provide a kml view style.

Class

views_plugin_style_kml
@file Extending the view_plugin_style class to provide a kml view style.

Code

function option_definition() {
  $options = parent::option_definition();
  $field_options = array(
    'name' => t('Name'),
    'description' => t('Description'),
    'longitude' => t('Longitude'),
    'latitude' => t('Latitude'),
  );
  foreach ($field_options as $k => $v) {
    $fields[$k] = array(
      'default' => '',
    );
  }
  $options['fields'] = array(
    'contains' => $fields,
  );
  $options['filename'] = array(
    'default' => $this->filename,
    'translatable' => FALSE,
  );
  return $options;
}