Download & Extend

geonames_search.module required fields

Project:GeoNames
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When using the search function of the geonames webservice only one of the following is required. (q, name, name_equals). The module suggests that they are all required which simply is not true.

Comments

#1

An additional note, but removing those items from the required_parameters array, then the query will not be run period.

#2

Status:active» closed (fixed)

The configuration for "search" includes:

<?php
   
'required_parameters' => array( // If you have set query_defaults you should not include the parameter here
     
'query',
     
'name',
     
'name_equals'
   
),
   
'required_parameters_type' => 'single',
?>

The "required_parameters_type" value means that only one of these parameters must be set. In any case (experimentally) searching with just one parameter works just fine.

No change required. Closing.

nobody click here