Projet

Général

Profil

Paste
Télécharger (637 octets) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / commerce / modules / product_pricing / commerce_product_pricing.install @ 9d13637e

1
<?php
2

    
3
/**
4
 * Deletes Product Pricing data on uninstallation.
5
 */
6

    
7

    
8
/**
9
 * Implements hook_uninstall().
10
 */
11
function commerce_product_pricing_uninstall() {
12
  variable_del('commerce_product_sell_price_pre_calculation');
13
  variable_del('commerce_product_sell_price_pre_calculation_rules_bypass');
14
}
15

    
16
/**
17
 * Provide a default language value for pre-calculated prices if necessary.
18
 */
19
function commerce_product_pricing_update_7100() {
20
  db_update('commerce_calculated_price')
21
    ->fields(array('language' => LANGUAGE_NONE))
22
    ->condition('language', '')
23
    ->execute();
24

    
25
  return t('Pre-calculated price records have been updated.');
26
}