| 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.15 2006/09/15 14:31:26 sugree Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 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 |
/** |
/** |
| 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, |