You are here

function commerce_file_uninstall in Commerce File 7.2

Same name and namespace in other branches
  1. 7 commerce_file.install \commerce_file_uninstall()

Implements hook_uninstall().

File

./commerce_file.install, line 111

Code

function commerce_file_uninstall() {

  // Delete the fields created and attached to this module's bundles.
  field_attach_delete_bundle('commerce_license', 'file');

  // Delete the product field.
  field_delete_field('commerce_file');

  // Delete variable settings.
  variable_del('commerce_file_product_types');
  variable_del('commerce_file_enable_download_limit');
  variable_del('commerce_file_download_limit');
}