function commerce_update_7102 in Commerce Core 7
Give commerce.module a higher weight than field.module so we can use hook_system_info_alter() to remove the dependencies it adds.
File
- ./
commerce.install, line 314
Code
function commerce_update_7102() {
$weight = db_select('system', 's')
->fields('s', array(
'weight',
))
->condition('name', 'field', '=')
->execute()
->fetchField();
db_update('system')
->fields(array(
'weight' => $weight + 1,
))
->condition('name', 'commerce', '=')
->execute();
return t('The module weight for Commerce has been increased.');
}