function uc_attribute_admin_settings in Ubercart 5
Same name and namespace in other branches
- 6.2 uc_attribute/uc_attribute.admin.inc \uc_attribute_admin_settings()
Change the display of attribute option prices.
1 string reference to 'uc_attribute_admin_settings'
- uc_attribute_menu in uc_attribute/
uc_attribute.module - Implementation of hook_menu().
File
- uc_attribute/
uc_attribute.module, line 384
Code
function uc_attribute_admin_settings() {
$form = array();
$form['uc_attribute_option_price_format'] = array(
'#type' => 'radios',
'#title' => t('Option price format'),
'#default_value' => variable_get('uc_attribute_option_price_format', 'adjustment'),
'#options' => array(
'none' => t('Do not display'),
'adjustment' => t('Display price adjustment'),
'total' => t('Display total price'),
),
'#description' => t('Formats the price in the attribute selection form when the customer adds a product to their cart. The total price will only be displayed on products with only one price affecting attribute.'),
);
return system_settings_form($form);
}