function views_handler_cumulative_field::get_value in Views Cumulative Field 7
Render callback handler.
Return the markup that will appear in the rendered field.
Overrides views_handler_field::get_value
File
- includes/
views_handler_cumulative_field.inc, line 59 - Custom views handler definition.
Class
- views_handler_cumulative_field
- Custom handler class.
Code
function get_value($values, $field = NULL) {
$datafield = $this->options['data_field'];
$this->additional_fields['cumulative_field_data'] = $values->_field_data['nid']['entity']->{$datafield}['und'][0]['value'] + $this->additional_fields['cumulative_field_data'];
$value = $this->additional_fields['cumulative_field_data'];
drupal_set_message(json_encode($value));
return $value;
}