/**
  * {@inheritdoc}
  */
 public function render(ResultRow $values)
 {
     // Only render if we exist.
     if (isset($this->tableAlias)) {
         return parent::render($values);
     }
 }
 /**
  * {@inheritdoc}.
  */
 public function buildOptionsForm(&$form, &$form_state)
 {
     parent::buildOptionsForm($form, $form_state);
     $form['source'] = array('#type' => 'select', '#title' => t('Source of Origin Point'), '#description' => t('How do you want to enter your origin point?'), '#options' => array(), '#default_value' => $this->options['source']);
     $proximityHandlers = geofield_proximity_views_handlers();
     foreach ($proximityHandlers as $key => $handler) {
         $form['source']['#options'][$key] = $handler['name'];
         $proximityPlugin = geofield_proximity_load_plugin($key);
         $proximityPlugin->options_form($form, $form_state, $this);
     }
     $form['radius_of_earth'] = array('#type' => 'select', '#title' => t('Unit of Measure'), '#description' => '', '#options' => geofield_radius_options(), '#default_value' => $this->options['radius_of_earth']);
 }
 /**
  * {@inheritdoc}
  */
 public function render(ResultRow $values)
 {
     $value = $this->getValue($values);
     if (!empty($value)) {
         return $this->renderLink(parent::render($values), $values);
     } else {
         $this->options['alter']['make_link'] = FALSE;
     }
 }