function commerce_product_attributes_enable in Commerce Product Attributes 7
Implementation of hook_enable()
File
- ./
commerce_product_attributes.module, line 11 - This module adds some improvements to the Drupal Commerce core.
Code
function commerce_product_attributes_enable() {
$weight = db_select('system', 's')
->condition('s.name', 'commerce_cart')
->fields('s', array(
'weight',
))
->execute()
->fetchField();
db_update('system')
->fields(array(
'weight' => $weight - 1,
))
->condition('name', 'commerce_product_attributes')
->execute();
}