function getdirections_locations_via_path in Get Directions 6
Same name and namespace in other branches
- 6.2 getdirections.api.inc \getdirections_locations_via_path()
- 7.3 getdirections.api.inc \getdirections_locations_via_path()
- 7.2 getdirections.api.inc \getdirections_locations_via_path()
API Function to generate a url path for use by other modules/themes.
Example Usage: $vids = "1,2,3,4"; where '1' is the vid of the starting point '4' is the vid of the end point and the numbers in between are the vids of the waypoints $path = getdirections_locations_via_path($vids); $url = l(t('Get directions'), $path);
Parameters
$vids: Required. String. A comma delimited list of uid numbers
Return value
Returns a path relative to the drupal root.
File
- ./
getdirections.api.inc, line 131 - Get directions API
Code
function getdirections_locations_via_path($vids) {
if (module_exists('location')) {
return "getdirections/locations_via/{$vids}";
}
}