You are here

function getdirections_user_setlocation in Get Directions 7.3

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

Function to setup the map and form

Parameters

string $direction: Required. The direction the supplied input applies to

int $uid: Required. The uid of the location owner

Return value

Returns the themed map and form

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

File

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

Code

function getdirections_user_setlocation($direction, $uid, $width = '', $height = '') {
  $content = getdirections_entity_setlocation('user', $direction, $uid, $width, $height);
  return $content;
}