You are here

function getdirections_locations_user_via_path in Get Directions 6

Same name and namespace in other branches
  1. 6.2 getdirections.api.inc \getdirections_locations_user_via_path()
  2. 7.3 getdirections.api.inc \getdirections_locations_user_via_path()
  3. 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

$uids: Required. String. A comma delimited list of uid numbers

Return value

Returns a path relative to the drupal root.

File

./getdirections.api.inc, line 109
Get directions API

Code

function getdirections_locations_user_via_path($uids) {
  if (module_exists('location')) {
    return "getdirections/locations_user_via/{$uids}";
  }
}