You are here

function commerce_recurring_uninstall in Commerce Recurring Framework 7

Same name and namespace in other branches
  1. 7.2 commerce_recurring.install \commerce_recurring_uninstall()

Implements hook_schema(). / function commerce_recurring_schema() {

}

Implements hook_uninstall().

File

./commerce_recurring.install, line 22

Code

function commerce_recurring_uninstall() {

  // Loop over each of the fields defined by this module and delete
  // all instances of the field, their data, and the field itself.
  foreach (array_keys(_commerce_recurring_installed_fields()) as $field) {
    field_delete_field($field);
  }

  // Purge all field infromation
  field_purge_batch(1000);

  // Remove the product type
  commerce_product_ui_product_type_delete('recurring', FALSE);
}