You are here

commerce_ss.install in Commerce Stock 7.2

Install, update, and uninstall functions for commerce_ss.

File

modules/commerce_ss/commerce_ss.install
View source
<?php

/**
 * @file
 * Install, update, and uninstall functions for commerce_ss.
 */

/**
 * Implements hook_uninstall().
 */
function commerce_ss_uninstall() {

  // We may have a number of variables one for each type enabled so safer to use
  // a db_delete() with a like then a variable_del().
  db_delete('variable')
    ->condition('name', "commerce_stock_decimal_backend_%", "LIKE")
    ->execute();

  // Clear the variables cache.
  cache_clear_all('variables', 'cache_bootstrap');
}

Functions

Namesort descending Description
commerce_ss_uninstall Implements hook_uninstall().