function _search_log_get_time in Search Log 8
Same name and namespace in other branches
- 6 search_log.module \_search_log_get_time()
- 7 search_log.module \_search_log_get_time()
Utility time function.
Effectively returns time() rounded down to nearest day.
2 calls to _search_log_get_time()
- search_log in ./
search_log.module - Store search keys, module, language and day.
- search_log_cron in ./
search_log.module - Implements hook_cron().
File
- ./
search_log.module, line 44 - This module holds functions of Search Log Module.
Code
function _search_log_get_time() {
static $today;
if (!isset($today)) {
$today = mktime(0, 0, 0);
}
return $today;
}