You are here

function smart_ip_views_bridge_openlayers_proximity_handler_filter_circle::value_form in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_openlayers_proximity_handler_filter_circle.inc \smart_ip_views_bridge_openlayers_proximity_handler_filter_circle::value_form()
  2. 6 modules/smart_ip_views_bridge/views/smart_ip_views_bridge_openlayers_proximity_handler_filter_circle.inc \smart_ip_views_bridge_openlayers_proximity_handler_filter_circle::value_form()

Provide a simple textfield for equality

File

modules/smart_ip_views_bridge/views/smart_ip_views_bridge_openlayers_proximity_handler_filter_circle.inc, line 17

Class

smart_ip_views_bridge_openlayers_proximity_handler_filter_circle

Code

function value_form(&$form, &$form_state) {
  parent::value_form($form, $form_state);

  // Remove "Get location from a node" and "Expose this filter to visitors, to allow them to change it" options
  unset($form['location_as']['#options']['node'], $form['expose_button']);

  // Add description showing Smart IP tokens
  $form['value']['location']['#description'] .= smart_ip_views_bridge_form_fields_description();
}