/[drupal]/contributions/modules/search_keywords/search_keywords.module
ViewVC logotype

Diff of /contributions/modules/search_keywords/search_keywords.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.15 by sugree, Fri Sep 15 14:31:26 2006 UTC revision 1.15.2.1 by sugree, Wed Jan 3 01:53:05 2007 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: search_keywords.module,v 1.14 2006/09/14 09:03:07 sugree Exp $  // $Id: search_keywords.module,v 1.17 2007/01/03 01:48:51 sugree Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 43  function search_keywords_exit() { Line 43  function search_keywords_exit() {
43   * Implementation of hook_perm().   * Implementation of hook_perm().
44   */   */
45  function search_keywords_perm() {  function search_keywords_perm() {
46    return array('view search keywords');    return array('access search keywords');
47  }  }
48    
49  /**  /**
# Line 52  function search_keywords_perm() { Line 52  function search_keywords_perm() {
52  function search_keywords_menu($may_cache) {  function search_keywords_menu($may_cache) {
53    $items = array();    $items = array();
54    
55    $access = user_access('access search_keywords');    $access = user_access('access search keywords');
56    if ($may_cache) {    if ($may_cache) {
57      $items[] = array('path' => 'admin/logs/search_keywords', 'title' => t('recent keywords'),      $items[] = array('path' => 'admin/logs/search_keywords', 'title' => t('recent keywords'),
58        'callback' => 'search_keywords_recent_keywords', 'access' => $access,        'callback' => 'search_keywords_recent_keywords', 'access' => $access,
# Line 117  function search_keywords_settings() { Line 117  function search_keywords_settings() {
117   */   */
118  function search_keywords_cron() {  function search_keywords_cron() {
119    /* clean expired access logs */    /* clean expired access logs */
120    db_query('DELETE FROM {accesslog} WHERE timestamp < %d', time() - variable_get('search_keywords_flush_accesslog_timer', 259200));    db_query('DELETE FROM {search_keywords_log} WHERE timestamp < %d', time() - variable_get('search_keywords_flush_accesslog_timer', 259200));
121  }  }
122    
123  /**  /**

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.15.2.1

  ViewVC Help
Powered by ViewVC 1.1.3