function uc_product_field_enabled in Ubercart 6.2
Convenience function to get the enabled fields.
3 calls to uc_product_field_enabled()
- uc_product_table in uc_product/
uc_product.module - Displays product fields in a TAPIr table.
- uc_product_table_header in uc_product/
uc_product.module - Returns the table header for the product view table.
- uc_product_view in uc_product/
uc_product.module - Implements hook_view().
5 string references to 'uc_product_field_enabled'
- uc_product_field_settings_form in uc_product/
uc_product.admin.inc - Allows store administrators to control what product information is relavent to their store.
- uc_product_field_settings_form_reset in uc_product/
uc_product.admin.inc - Resets field settings to their default values.
- uc_product_field_settings_form_submit in uc_product/
uc_product.admin.inc - Saves the product fields settings.
- uc_product_kit_view in uc_product_kit/
uc_product_kit.module - Implements hook_view().
- uc_product_uninstall in uc_product/
uc_product.install - Implements hook_uninstall().
File
- uc_product/
uc_product.module, line 716 - The product module for Ubercart.
Code
function uc_product_field_enabled() {
$enabled = variable_get('uc_product_field_enabled', array(
'image' => 1,
'display_price' => 1,
'model' => 1,
'list_price' => 0,
'cost' => 0,
'sell_price' => 1,
'weight' => 0,
'dimensions' => 0,
'add_to_cart' => 1,
));
return $enabled;
}