function _views_calc_replacements in Views Calc 7
Same name and namespace in other branches
- 5 views_calc.module \_views_calc_replacements()
- 6.3 views_calc.module \_views_calc_replacements()
- 6 views_calc.module \_views_calc_replacements()
An array of allowable calculation values.
1 call to _views_calc_replacements()
- views_calc_fields_form_validate in ./
views_calc.module - FAPI fields_form validate.
File
- ./
views_calc.module, line 473 - 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_replacements() {
$operators = array_filter(_views_calc_operators(), 'trim');
$numbers = range(0, 9);
return array_merge($operators, $numbers);
}