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

Diff of /contributions/modules/click/click.module

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

revision 1.5.2.2, Sun Feb 25 22:18:03 2007 UTC revision 1.5.2.3, Tue Jun 17 19:59:20 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2    
3  //$Id: click.module,v 1.5.2.1 2007/02/08 17:34:44 kbahey Exp $  //$Id: click.module,v 1.5.2.2 2007/02/25 22:18:03 kbahey Exp $
4    
5  // Copyright 2005 Khalid Baheyeldin http://2bits.com  // Copyright 2005 Khalid Baheyeldin http://2bits.com
6    
# Line 66  function click_menu($may_cache) { Line 66  function click_menu($may_cache) {
66    
67      $items[] = array(      $items[] = array(
68        'path'     => 'admin/logs/click',        'path'     => 'admin/logs/click',
69        'title'    => t('clicks'),        'title'    => t('Clicks'),
70        'callback' => 'click_report',        'callback' => 'click_report',
71        'access'   => user_access('view click stats'),        'access'   => user_access('view click stats'),
72        'type'     => MENU_NORMAL_ITEM,        'type'     => MENU_NORMAL_ITEM,
# Line 148  function click_view() { Line 148  function click_view() {
148      $rows[] = array(array('data' => ('Last  click at: ')),  array('data' => format_date($click->last, 'custom', $fmt)));      $rows[] = array(array('data' => ('Last  click at: ')),  array('data' => format_date($click->last, 'custom', $fmt)));
149      $output .= $group . theme('table', array(), $rows);      $output .= $group . theme('table', array(), $rows);
150    }    }
151    print theme('page', $output);    return $output;
152  }  }
153    
154  function click_report() {  function click_report() {
# Line 178  function click_report() { Line 178  function click_report() {
178    if (!empty($pager)) {    if (!empty($pager)) {
179      $rows[] = array(array('data' => $pager, 'colspan' => '4'));      $rows[] = array(array('data' => $pager, 'colspan' => '4'));
180    }    }
181    print theme('page', theme('table', $header, $rows), t('Click Thru Report'));    return theme('table', $header, $rows);
182  }  }
183    
184  function click_do() {  function click_do() {

Legend:
Removed from v.1.5.2.2  
changed lines
  Added in v.1.5.2.3

  ViewVC Help
Powered by ViewVC 1.1.2