function commerce_round_mode_options_list in Commerce Core 7
Returns an options list of round modes.
1 call to commerce_round_mode_options_list()
- commerce_tax_ui_tax_type_form in modules/
tax/ includes/ commerce_tax_ui.admin.inc - Form callback: create or edit a tax type.
1 string reference to 'commerce_round_mode_options_list'
- commerce_line_item_rules_action_info in modules/
line_item/ commerce_line_item.rules.inc - Implements hook_rules_action_info().
File
- ./
commerce.module, line 833 - Defines features and functions common to the Commerce modules.
Code
function commerce_round_mode_options_list() {
return array(
COMMERCE_ROUND_NONE => t('Do not round at all'),
COMMERCE_ROUND_HALF_UP => t('Round the half up'),
COMMERCE_ROUND_HALF_DOWN => t('Round the half down'),
COMMERCE_ROUND_HALF_EVEN => t('Round the half to the nearest even number'),
COMMERCE_ROUND_HALF_ODD => t('Round the half to the nearest odd number'),
);
}