function getdirections_term_setlocation in Get Directions 7.3
Same name and namespace in other branches
- 7.2 getdirections.module \getdirections_term_setlocation()
Function to setup the map and form
Parameters
string $direction: Required. The direction the supplied input applies to
int $tid: Required. The tid of the location enabled taxonomy term
Return value
Returns the themed map and form
1 call to getdirections_term_setlocation()
- getdirections_direction_box in ./
getdirections.module - for colorbox and suchlike
1 string reference to 'getdirections_term_setlocation'
- getdirections_menu in ./
getdirections.module - Implement hook_menu().
File
- ./
getdirections.module, line 1210 - Fetches google map directions.
Code
function getdirections_term_setlocation($direction, $tid, $width = '', $height = '') {
$content = getdirections_entity_setlocation('taxonomy_term', $direction, $tid, $width, $height);
return $content;
}