You are here

function _search_log_get_time in Search Log 7

Same name and namespace in other branches
  1. 8 search_log.module \_search_log_get_time()
  2. 6 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, language and day.
search_log_cron in ./search_log.module
Implements hook_cron().
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.

... See full list

File

./search_log.module, line 318
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;
}