function uc_attribute_update_6003 in Ubercart 6.2
Add label to attributes to allow differently named attributes to show with the same label on product add to cart forms.
File
- uc_attribute/
uc_attribute.install, line 485 - Install hooks for uc_attribute.module.
Code
function uc_attribute_update_6003() {
$ret = array();
$spec = array(
'type' => 'varchar',
'length' => 255,
'not null' => TRUE,
'default' => '',
);
db_add_field($ret, 'uc_attributes', 'label', $spec);
db_add_field($ret, 'uc_class_attributes', 'label', $spec);
db_add_field($ret, 'uc_product_attributes', 'label', $spec);
$ret[] = array(
'success' => TRUE,
'query' => 'Added label to product attributes.',
);
return $ret;
}