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