You are here

function uc_product_kit_uninstall in Ubercart 8.4

Same name and namespace in other branches
  1. 5 uc_product_kit/uc_product_kit.install \uc_product_kit_uninstall()
  2. 6.2 uc_product_kit/uc_product_kit.install \uc_product_kit_uninstall()
  3. 7.3 uc_product_kit/uc_product_kit.install \uc_product_kit_uninstall()

Implements hook_uninstall().

File

uc_product_kit/uc_product_kit.install, line 113
Install, update and uninstall functions for the uc_product_kit module.

Code

function uc_product_kit_uninstall() {

  // Allow the product kit content type to be deleted.
  $locked = \Drupal::state()
    ->get('node.type.locked');
  unset($locked['product_kit']);
  \Drupal::state()
    ->set('node.type.locked', $locked);
}