| 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() { |
| 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; |