function _location_nz_enough_fields_for_yahoo in Location 7.3
Yahoo fields.
1 call to _location_nz_enough_fields_for_yahoo()
- _location_driving_directions_link_nz_yahoo in supported/
location.nz.inc - Yahoo link.
File
- supported/
location.nz.inc, line 530 - New Zealand.
Code
function _location_nz_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;
}