function _search_log_get_time in Search Log 6
Same name and namespace in other branches
- 8 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.
6 calls to _search_log_get_time()
- search_log in ./
search_log.module - Store search keys, module and day.
- search_log_preprocess_search_results in ./
search_log.module - Process search results.
- search_log_report in ./
search_log.admin.inc - Display search log report.
- search_log_report_form in ./
search_log.admin.inc - Report filter form.
- search_log_report_form_validate in ./
search_log.admin.inc - Report filter form validation.
File
- ./
search_log.module, line 362 - Replaces default report of top search phrases.
Code
function _search_log_get_time() {
static $today;
if (!isset($today)) {
$today = mktime(0, 0, 0);
}
return $today;
}