function uc_varprice_settings in UC Variable Price 7
Same name and namespace in other branches
- 6 uc_varprice.module \uc_varprice_settings()
Adds settings to the product features form for UC Variable Price.
1 string reference to 'uc_varprice_settings'
- uc_varprice_uc_product_feature in ./
uc_varprice.module - Implements hook_uc_product_feature().
File
- ./
uc_varprice.module, line 248 - Defines a product feature to turn any product into a variable priced product.
Code
function uc_varprice_settings() {
$form = array();
$form['uc_varprice_global_default'] = array(
'#title' => t('Global default price'),
'#type' => 'textfield',
'#size' => 8,
'#description' => t('The global default price for variable priced products; may be overridden at the product class or product level.'),
'#default_value' => variable_get('uc_varprice_global_default', '0'),
'#field_prefix' => variable_get('uc_sign_after_amount', FALSE) ? '' : variable_get('uc_currency_sign', '$'),
'#field_suffix' => variable_get('uc_sign_after_amount', FALSE) ? variable_get('uc_currency_sign', '$') : '',
);
return $form;
}