function jquery_countdown_serversync in jQuery Countdown 6
page callback: simply returns the current server time and exit drupal
1 string reference to 'jquery_countdown_serversync'
- jquery_countdown_menu in ./
jquery_countdown.module - Implementation of hook_menu() provides the ajax callback for serversync option
File
- ./
jquery_countdown.module, line 72 - provides the jquery_countdown theme function and serversync callback
Code
function jquery_countdown_serversync() {
drupal_set_header("Cache-Control: no-cache, must-revalidate");
drupal_set_header("Expires: Fri, 1 Jan 2010 00:00:00 GMT");
$now = new DateTime();
echo $now
->format("M j, Y H:i:s O") . "\n";
exit;
}