function commerce_file_uninstall in Commerce File 7
Same name and namespace in other branches
- 7.2 commerce_file.install \commerce_file_uninstall()
Implements hook_uninstall().
File
- ./
commerce_file.install, line 201 - Install, update and uninstall functions this module.
Code
function commerce_file_uninstall() {
drupal_load('module', 'commerce_file');
// Delete any field instance attached to a license type.
commerce_delete_instances('commerce_file_license');
// Delete any commerce_file created by this module.
_commerce_file_delete_line_item_fields();
// Delete any commerce_file fields.
/** @todo: put this in separate field module once split apart **********************/
commerce_delete_fields('commerce_file');
// Delete variables
variable_del('commerce_file_license_help_text');
// Clear license info cache
cache_clear_all('commerce_file_license_info', 'cache');
}