function getdirections_u2n_setlocation in Get Directions 7.3
Same name and namespace in other branches
- 6.2 getdirections.module \getdirections_u2n_setlocation()
- 6 getdirections.module \getdirections_u2n_setlocation()
- 7.2 getdirections.module \getdirections_u2n_setlocation()
Function to setup the map and form
Parameters
int $uid: Required. The uid of the starting point
int $nid: Required. The nid of the destination
Return value
Returns the themed map
1 call to getdirections_u2n_setlocation()
- getdirections_direction_box in ./
getdirections.module - for colorbox and suchlike
1 string reference to 'getdirections_u2n_setlocation'
- getdirections_menu in ./
getdirections.module - Implement hook_menu().
File
- ./
getdirections.module, line 1169 - Fetches google map directions.
Code
function getdirections_u2n_setlocation($uid, $nid, $width = '', $height = '') {
$content = getdirections_entity_setlocations('user', $uid, 'node', $nid, $width, $height);
return $content;
}