function uc_attribute_form_uc_product_settings_form_alter in Ubercart 7.3
Same name and namespace in other branches
- 8.4 uc_attribute/uc_attribute.module \uc_attribute_form_uc_product_settings_form_alter()
Implements hook_form_FORM_ID_alter() for uc_product_settings_form().
File
- uc_attribute/
uc_attribute.module, line 279 - Ubercart Attribute module.
Code
function uc_attribute_form_uc_product_settings_form_alter(&$form, &$form_state) {
$form['attributes'] = array(
'#type' => 'fieldset',
'#title' => 'Attribute settings',
'#group' => 'product-settings',
'#weight' => -3,
);
$form['attributes']['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('Determines how price variations are displayed to the customer. Prices may be displayed directly next to each attribute option in the attribute selection form either as a total price for the product with that option or as an adjustment (+ or -) showing how that option affects the product base price. Note that the price will always be displayed as an adjustment for attributes that can have multiple options (using checkboxes).'),
);
}