function getdirections_node_setlocations in Get Directions 7.3
Function to setup the map
Parameters
int $fromnid: Required. The nid of the starting point
int $tonid: Required. The nid of the destination
Return value
Returns the themed map
1 call to getdirections_node_setlocations()
- getdirections_direction_box in ./
getdirections.module - for colorbox and suchlike
1 string reference to 'getdirections_node_setlocations'
- getdirections_menu in ./
getdirections.module - Implement hook_menu().
File
- ./
getdirections.module, line 1139 - Fetches google map directions.
Code
function getdirections_node_setlocations($fromnid, $tonid, $width = '', $height = '') {
$content = getdirections_entity_setlocations('node', $fromnid, 'node', $tonid, $width, $height);
return $content;
}