function getdirections_location_n2u_path in Get Directions 6
Same name and namespace in other branches
- 6.2 getdirections.api.inc \getdirections_location_n2u_path()
- 7.3 getdirections.api.inc \getdirections_location_n2u_path()
- 7.2 getdirections.api.inc \getdirections_location_n2u_path()
API Function to generate a url path for use by other modules/themes.
Example Usage: $path = getdirections_location_n2u_path($fromvid, $touid); $url = l(t('Get directions'), $path);
Parameters
$fromvid: Required. The vid of the location node of the starting point
$touid: Required. The uid of the location user of the destination
Return value
Returns a path relative to the drupal root.
File
- ./
getdirections.api.inc, line 176 - Get directions API
Code
function getdirections_location_n2u_path($fromvid, $touid) {
if (module_exists('location') && is_numeric($fromvid) && is_numeric($touid)) {
return "getdirections/location_u2n/{$fromvid}/{$touid}";
}
}