You are here

function search_api_location_plugin_exposed_form::options_form in Search API Location 7

Provide a form to edit options for this plugin.

Overrides views_plugin_exposed_form::options_form

File

includes/search_api_location_plugin_exposed_form.inc, line 21

Class

search_api_location_plugin_exposed_form
The search_api_location plugin to handle radius exposed filter forms.

Code

function options_form(&$form, &$form_state) {
  $form['use_gmap'] = array(
    '#type' => 'checkbox',
    '#title' => t('Use gmap'),
    '#description' => t('Use gmap to pick location with radius filter'),
    '#default_value' => $this->options['use_gmap'],
  );
  $form['gmap_macro'] = array(
    '#type' => 'textfield',
    '#title' => t('Gmap macro'),
    '#description' => t('The macro to use for the gmap. If you not specify gmap macro it will use default gmap settings.'),
    '#default_value' => $this->options['gmap_macro'],
    '#required' => TRUE,
    '#dependency' => array(
      'edit-exposed-form-options-use-gmap' => array(
        1,
      ),
    ),
    '#process' => array(
      'ctools_dependent_process',
    ),
  );
}