function location_search_view in Location 5
1 string reference to 'location_search_view'
- location_menu in ./
location.module - Implementation of hook_menu.
File
- ./
location.module, line 66
Code
function location_search_view() {
$location_params = array(
//'street' => $_GET['street'],
//'city' => $_GET['city'],
//'province' => $_GET['province'],
'postal_code' => $_GET['postal_code'],
'country' => $_GET['country'] ? $_GET['country'] : variable_get('location_default_country', 'us'),
);
$proximity_params = array(
'distance' => $_GET['distance'],
'unit' => $_GET['unit'],
);
$output .= drupal_get_form('location_search_form', $location_params, $proximity_params);
if ($_GET['postal_code'] && $_GET['country'] && $_GET['distance'] && $_GET['country']) {
$output .= location_search_results($location_params, $proximity_params);
}
return $output;
}