function getdirections_direction_form in Get Directions 7.3
Same name and namespace in other branches
- 6.2 getdirections.module \getdirections_direction_form()
- 6 getdirections.module \getdirections_direction_form()
- 7.2 getdirections.module \getdirections_direction_form()
Function to setup the form
Parameters
string $fromto: Optional. The direction the supplied input applies to
string $loc: Optional. The string to search with
string $country: Optional. The country
string $latlon: Optional. Comma delimited string containing latitude and longitude
Return value
Returns the form
3 string references to 'getdirections_direction_form'
- getdirections_direction in ./
getdirections.module - Function to setup the map and form
- getdirections_direction_other in ./
getdirections.module - Function to setup the map and form
- getdirections_fields_direction_form in modules/
getdirections_fields/ getdirections_fields.module - The getdirections form
File
- ./
getdirections.module, line 572 - Fetches google map directions.
Code
function getdirections_direction_form($form, &$form_state, $mapid, $fromto = '', $loc = '', $country = '', $latlon = '') {
$getdirections_defaults = getdirections_defaults();
$getdirections_misc = getdirections_misc_defaults();
$form = array();
$form += _getdirections_direction_form($getdirections_defaults, $getdirections_misc, $mapid, $fromto, $loc, $country, $latlon);
return $form;
}