/[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.1.2.2.2.3, Mon Sep 21 20:02:21 2009 UTC revision 1.1.2.2.2.4, Mon Sep 21 20:26:56 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: wordcount.module,v 1.1.2.2.2.2 2009/09/21 19:59:09 crookednumber Exp $  // $Id: wordcount.module,v 1.1.2.2.2.3 2009/09/21 20:02:21 crookednumber Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 27  function wordcount_menu() { Line 27  function wordcount_menu() {
27    return $items;    return $items;
28  }  }
29    
30  function wordcount_show_count() {  function wordcount_show_count() {
31      drupal_add_js(drupal_get_path('module', 'wordcount') . '/js/jquery.tablesorter.min.js', 'module');
32      drupal_add_js(drupal_get_path('module', 'wordcount') . '/js/wordcount.js', 'module');
33      drupal_add_css(drupal_get_path('module', 'wordcount') . '/themes/blue/wordcount-blue-style.css', 'module');
34    // Count words.    // Count words.
35    $row = array();    $row = array();
36    
# Line 85  function wordcount_show_count() { Line 88  function wordcount_show_count() {
88      array ('data' => 'words per comment'),      array ('data' => 'words per comment'),
89      array ('data' => 'total words'),      array ('data' => 'total words'),
90      );      );
91    $output = theme_table($header, $row);    $output = theme('table', $header, $row, array('id' => 'wordcount', 'class' => 'tablesorter'));
92    
93    return $output;    return $output;
94  }  }

Legend:
Removed from v.1.1.2.2.2.3  
changed lines
  Added in v.1.1.2.2.2.4

  ViewVC Help
Powered by ViewVC 1.1.2