function getdirections_node_setlocation in Get Directions 7.3
Function to setup the map and form
Parameters
string $direction: Required. The direction the supplied input applies to
int $nid: Required. The nid of the location node
Return value
Returns the themed map and form
1 call to getdirections_node_setlocation()
- getdirections_direction_box in ./
getdirections.module - for colorbox and suchlike
1 string reference to 'getdirections_node_setlocation'
- getdirections_menu in ./
getdirections.module - Implement hook_menu().
File
- ./
getdirections.module, line 1124 - Fetches google map directions.
Code
function getdirections_node_setlocation($direction, $nid, $width = '', $height = '') {
$content = getdirections_entity_setlocation('node', $direction, $nid, $width, $height);
return $content;
}