/[drupal]/contributions/modules/views/handlers/views_handler_field_counter.inc
ViewVC logotype

Diff of /contributions/modules/views/handlers/views_handler_field_counter.inc

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

revision 1.1.2.5, Mon Nov 2 20:48:22 2009 UTC revision 1.1.2.6, Mon Nov 9 21:30:22 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: views_handler_field_counter.inc,v 1.1.2.4 2009/09/21 21:36:29 merlinofchaos Exp $  // $Id: views_handler_field_counter.inc,v 1.1.2.5 2009/11/02 20:48:22 merlinofchaos Exp $
3    
4  class views_handler_field_counter extends views_handler_field {  class views_handler_field_counter extends views_handler_field {
5    function option_definition() {    function option_definition() {
# Line 26  class views_handler_field_counter extend Line 26  class views_handler_field_counter extend
26    }    }
27    
28    function render($values) {    function render($values) {
     dsm($this->view->row_index);  
29      // Note:  1 is subtracted from the counter start value below because the      // Note:  1 is subtracted from the counter start value below because the
30      // counter value is incremented by 1 at the end of this function.      // counter value is incremented by 1 at the end of this function.
31      $count = is_numeric($this->options['counter_start']) ? $this->options['counter_start'] - 1 : 0;      $count = is_numeric($this->options['counter_start']) ? $this->options['counter_start'] - 1 : 0;

Legend:
Removed from v.1.1.2.5  
changed lines
  Added in v.1.1.2.6

  ViewVC Help
Powered by ViewVC 1.1.2