You are here

views_cumulative_field.views.inc in Views Cumulative Field 7

Same filename and directory in other branches
  1. 8 views_cumulative_field.views.inc

File

views_cumulative_field.views.inc
View source
<?php

/**
 * Implements hook_views_data().
 */
function views_cumulative_field_views_data() {
  $data['views_cumulative_field']['table']['group'] = t('Global');
  $data['views_cumulative_field']['table']['join'] = array(
    // Exist in all views.
    '#global' => array(),
  );
  $data['views_cumulative_field']['cumulative_field'] = array(
    'title' => t('Cumulative Field'),
    'help' => t('Views field that calculates the cumulative value of another field in your view.'),
    'field' => array(
      'handler' => 'views_handler_cumulative_field',
    ),
  );
  return $data;
}

Functions