function uc_product_kit_settings_form in Ubercart 6.2
Builds the product kit settings form.
1 string reference to 'uc_product_kit_settings_form'
- uc_product_kit_menu in uc_product_kit/
uc_product_kit.module - Implements hook_menu().
File
- uc_product_kit/
uc_product_kit.admin.inc, line 13 - Defines administrative pages and form for the product kit module.
Code
function uc_product_kit_settings_form() {
$form = array();
$form['uc_product_kit_mutable'] = array(
'#type' => 'radios',
'#title' => t('Product kit cart display'),
'#options' => array(
UC_PRODUCT_KIT_UNMUTABLE_NO_LIST => t('As a unit. Customers may only change how many kits they are buying. Do not list component products.'),
UC_PRODUCT_KIT_UNMUTABLE_WITH_LIST => t('As a unit. Customers may only change how many kits they are buying. List component products.'),
UC_PRODUCT_KIT_MUTABLE => t('As individual products. Customers may add or remove kit components at will. Discounts entered below are not applied to the kit price'),
),
'#default_value' => variable_get('uc_product_kit_mutable', 0),
'#weight' => -5,
);
return system_settings_form($form);
}