You are here

function uc_varprice_settings in UC Variable Price 6

Same name and namespace in other branches
  1. 7 uc_varprice.module \uc_varprice_settings()
1 string reference to 'uc_varprice_settings'
uc_varprice_product_feature in ./uc_varprice.module
Implementation of hook_product_feature().

File

./uc_varprice.module, line 314
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;
}