function uc_addresses_update_7101 in Ubercart Addresses 7
Increase the weight of uc_addresses relative to uc_quote by an addition of 1 so that uc_addresses module can undo some of the actions done by uc_quote's form alter, which causes the delivery address form to disapear on checkout.
See also http://drupal.org/node/1421720.
File
- ./
uc_addresses.install, line 352 - Install file for Ubercart Addresses.
Code
function uc_addresses_update_7101() {
$weight = db_select('system', 's')
->fields('s', array(
'weight',
))
->condition('name', 'uc_quote', '=')
->execute()
->fetchField();
db_update('system')
->fields(array(
'weight' => $weight + 1,
))
->condition('name', 'uc_addresses', '=')
->execute();
return t('The weight of the uc_addresses module has been set to !weight.', array(
'!weight' => $weight + 1,
));
}