function _views_calc_format_options in Views Calc 7
Same name and namespace in other branches
- 5 views_calc.module \_views_calc_format_options()
- 6.3 views_calc.module \_views_calc_format_options()
- 6 views_calc.module \_views_calc_format_options()
Result format options.
2 calls to _views_calc_format_options()
- views_calc_field_form_item in ./
views_calc.module - A form element for an individual calculated field.
- views_calc_field_handler::render in ./
views_calc_field_handler.inc - Use the requested format function to render the raw alias value.
File
- ./
views_calc.module, line 77 - 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_format_options() {
$options = array(
'none' => '',
'integer' => 'intval',
'decimal (1)' => 'number_format:1',
'decimal (2)' => 'number_format:2',
'shortdate' => 'format_date:small',
'mediumdate' => 'format_date',
'longdate' => 'format_date:large',
'custom' => '',
);
return $options;
}