function getdirections_get_datestamp in Get Directions 7.2
Same name and namespace in other branches
- 7.3 getdirections.module \getdirections_get_datestamp()
1 string reference to 'getdirections_get_datestamp'
- getdirections_menu in ./
getdirections.module - Implement hook_menu().
File
- ./
getdirections.module, line 1852 - Fetches google map directions.
Code
function getdirections_get_datestamp() {
$d = $_GET['d'];
$t = $_GET['t'];
$date = $d . ' ' . $t;
$time = strtotime($date);
drupal_json_output(array(
'content' => $time * 1000,
));
}