function _location_ca_enough_fields_for_yahoo in Location 7.3
Same name and namespace in other branches
- 5.3 supported/location.ca.inc \_location_ca_enough_fields_for_yahoo()
- 5 supported/location.ca.inc \_location_ca_enough_fields_for_yahoo()
- 6.3 supported/location.ca.inc \_location_ca_enough_fields_for_yahoo()
- 7.5 supported/location.ca.inc \_location_ca_enough_fields_for_yahoo()
- 7.4 supported/location.ca.inc \_location_ca_enough_fields_for_yahoo()
Yahoo fields.
1 call to _location_ca_enough_fields_for_yahoo()
- _location_driving_directions_link_ca_yahoo in supported/
location.ca.inc - Directions link.
File
- supported/
location.ca.inc, line 322 - Canada.
Code
function _location_ca_enough_fields_for_yahoo($location) {
// These are the fields that need to be in each location if we are to provide a direct
// link to yahoo directions. If all of these fields don't have values, then we generate
// a link to the *form* for Yahoo! driving directions rather than directly to the driving
// directions themselves.
if (strlen($location['street']) && strlen($location['city']) && strlen($location['province'])) {
return TRUE;
}
if (strlen($location['street']) && strlen($location['postal_code'])) {
return TRUE;
}
if (strlen($location['street']) && strlen($location['city']) && strlen($location['province'])) {
return TRUE;
}
return FALSE;
}