function _views_summarize_get_formatted_summary in Views Summarize 7
Same name and namespace in other branches
- 7.2 views_summarize.module \_views_summarize_get_formatted_summary()
- 1.1.x views_summarize.module \_views_summarize_get_formatted_summary()
Gets the summary's formatted result.
Parameters
type $total: The summary to format.
type $options: The options element of the variables array that is passed into the summary theme function.
Return value
array The format settings in an associative array.
4 calls to _views_summarize_get_formatted_summary()
- theme_views_summarize_type_average in ./
views_summarize.module - Theme: Total value for an average column w/empty data values included.
- theme_views_summarize_type_average_no_empties in ./
views_summarize.module - Theme: Total value for an average column w/empty data values excluded.
- theme_views_summarize_type_currency in ./
views_summarize.module - Theme: Total value for a currency amount
- theme_views_summarize_type_total in ./
views_summarize.module - Theme: Total value for a numeric column
File
- ./
views_summarize.module, line 408
Code
function _views_summarize_get_formatted_summary($total, $options) {
$format_settings = _views_summarize_get_format_settings($options);
$summary = number_format($total, $format_settings['precision'], $format_settings['decimal_separator'], $format_settings['thousand_separator']);
return $summary;
}