| 1 |
<?php |
<?php |
| 2 |
// $Id: wordcount.module,v 1.2 2009/09/21 20:40:08 crookednumber Exp $ |
// $Id: wordcount.module,v 1.3 2009/09/21 20:41:57 crookednumber Exp $ |
| 3 |
|
|
| 4 |
/** |
/** |
| 5 |
* @file |
* @file |
| 17 |
/** |
/** |
| 18 |
* Implementation of hook_menu(). |
* Implementation of hook_menu(). |
| 19 |
*/ |
*/ |
| 20 |
function wordcount_menu($may_cache) { |
function wordcount_menu() { |
| 21 |
$items = array(); |
$items['admin/reports/wordcount'] = array( |
| 22 |
if ($may_cache) { |
'title' => 'Word count', |
| 23 |
$items[] = array( |
'description' => 'View number of words contributed by each user.', |
| 24 |
'path' => 'admin/logs/wordcount', |
'page callback' => 'wordcount_show_count', |
| 25 |
'title' => 'Word count', |
'access arguments' => array('view word count'), |
| 26 |
'description' => 'View number of words contributed by each user.', |
); |
|
'callback' => 'wordcount_show_count', |
|
|
'access' => user_access('view word count'), |
|
|
); |
|
|
} |
|
| 27 |
return $items; |
return $items; |
| 28 |
} |
} |
| 29 |
|
|