function _webform_number_format in Webform 7.3
Same name and namespace in other branches
- 6.3 components/number.inc \_webform_number_format()
- 7.4 components/number.inc \_webform_number_format()
Apply number format based on a component and number value.
5 calls to _webform_number_format()
- _webform_analysis_number in components/
number.inc - Implements _webform_analysis_component().
- _webform_display_number in components/
number.inc - Implements _webform_display_component().
- _webform_number_select_options in components/
number.inc - Generate select list options.
- _webform_render_number in components/
number.inc - Implements _webform_render_component().
- _webform_table_number in components/
number.inc - Implements _webform_table_component().
File
- components/
number.inc, line 756 - Webform module number component.
Code
function _webform_number_format($component, $value) {
return webform_number_format($value, $component['extra']['decimals'], $component['extra']['point'], $component['extra']['separator']);
}