You are here

function getlocations_fields_handler_argument_distance::calculate_coords in Get Locations 7.2

Same name and namespace in other branches
  1. 7 modules/getlocations_fields/handlers/getlocations_fields_handler_argument_distance.inc \getlocations_fields_handler_argument_distance::calculate_coords()
1 call to getlocations_fields_handler_argument_distance::calculate_coords()
getlocations_fields_handler_argument_distance::query in modules/getlocations_fields/handlers/getlocations_fields_handler_argument_distance.inc
Set up the query for this argument.

File

modules/getlocations_fields/handlers/getlocations_fields_handler_argument_distance.inc, line 58
getlocations_fields_handler_argument_distance.inc @author Bob Hutchinson http://drupal.org/user/52366 @copyright GNU GPL

Class

getlocations_fields_handler_argument_distance
Argument handler to accept proximity

Code

function calculate_coords() {
  if (!empty($this->value['latitude']) && !empty($this->value['longitude'])) {

    // If there are already coordinates, there's no work for us.
    return TRUE;
  }
  return FALSE;
}