You are here

function drupagram_views_handler_field_location::options_form in Drupagram 7

Default options form provides the label widget that all fields should have.

Overrides views_handler_field::options_form

File

./drupagram_views_field_handlers.inc, line 346
Drupagram views field handlers.

Class

drupagram_views_handler_field_location
Field handler to render the location.

Code

function options_form(&$form, &$form_state) {
  parent::options_form($form, $form_state);
  $form['format'] = array(
    '#type' => 'select',
    '#title' => t('Display format'),
    '#description' => t('<em>Location Name</em> will render the location name only, while <em>Raw Data</em> is useful for all location details including latitude, longitude, street address, name, and id.'),
    '#options' => array(
      'location' => t('Location Name'),
      'data' => t('Raw Data'),
    ),
    '#default_value' => $this->options['format'],
  );
}