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