You are here

function getdirections_n2u_setlocation in Get Directions 7.3

Same name and namespace in other branches
  1. 6.2 getdirections.module \getdirections_n2u_setlocation()
  2. 6 getdirections.module \getdirections_n2u_setlocation()
  3. 7.2 getdirections.module \getdirections_n2u_setlocation()

Function to setup the map

Parameters

int $nid: Required. The nid of the starting point

int $uid: Required. The uid of the destination

Return value

Returns the themed map

1 call to getdirections_n2u_setlocation()
getdirections_direction_box in ./getdirections.module
for colorbox and suchlike
1 string reference to 'getdirections_n2u_setlocation'
getdirections_menu in ./getdirections.module
Implement hook_menu().

File

./getdirections.module, line 1154
Fetches google map directions.

Code

function getdirections_n2u_setlocation($nid, $uid, $width = '', $height = '') {
  $content = getdirections_entity_setlocations('node', $nid, 'user', $uid, $width, $height);
  return $content;
}