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