You are here

function getdirections_locations_user_path in Get Directions 6.2

Same name and namespace in other branches
  1. 6 getdirections.api.inc \getdirections_locations_user_path()
  2. 7.3 getdirections.api.inc \getdirections_locations_user_path()
  3. 7.2 getdirections.api.inc \getdirections_locations_user_path()

API Function to generate a url path for use by other modules/themes.

Example Usage: $path = getdirections_locations_user_path($fromuid, $touid); $url = l(t('Get directions'), $path);

Parameters

int $fromuid: Required. The uid of the location user of the starting point

int $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 82
Get directions API

Code

function getdirections_locations_user_path($fromuid, $touid) {
  if (module_exists('location') && is_numeric($fromuid) && is_numeric($touid)) {
    return "getdirections/locations_user/{$fromuid}/{$touid}";
  }
}