function commerce_install in Commerce Core 7
Implements hook_install().
File
- ./
commerce.install, line 11
Code
function commerce_install() {
// Give commerce.module a higher weight than field.module so we can use
// hook_system_info_alter() to override the dependencies it adds.
$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();
}