You are here

function views_calc_shorten in Views Calc 7

Make sure our reconstructed aliases don't get too long

3 calls to views_calc_shorten()
views_calc_adj_full_alias in ./views_calc.module
Edge case if the same field has been used more than once, most likely with relationships since you could show title for each relationship. Results in a field like title becoming title_1.
views_calc_table::add_aggregation_fields in ./views_calc_table.inc
Query grand total.
views_calc_table_total in ./theme.inc
Build total var line.

File

./views_calc.module, line 603
This module will allow you to add calculated fields to views tables and compute (SUM, COUNT, AVG, etc) columns of numeric data in a views table.

Code

function views_calc_shorten($alias) {
  return strtolower(substr($alias, 0, 60));
}