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

Diff of /contributions/modules/wordcount/wordcount.module

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

revision 1.3, Mon Sep 21 20:41:57 2009 UTC revision 1.4, Mon Sep 21 20:44:44 2009 UTC
# Line 1  Line 1 
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
# Line 17  function wordcount_perm() { Line 17  function wordcount_perm() {
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    

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.2