You are here

function mass_contact_uninstall in Mass Contact 8

Same name and namespace in other branches
  1. 5.2 mass_contact.install \mass_contact_uninstall()
  2. 5 mass_contact.install \mass_contact_uninstall()
  3. 6 mass_contact.install \mass_contact_uninstall()
  4. 7 mass_contact.install \mass_contact_uninstall()

Implements hook_unistall().

File

./mass_contact.install, line 29
Install hooks for the mass contact module.

Code

function mass_contact_uninstall() {

  //Removing mass_contact_opt_out field.
  Drupal::configFactory()
    ->getEditable('field.field.user.user.mass_contact_opt_out')
    ->delete();
  Drupal::configFactory()
    ->getEditable('field.storage.user.mass_contact_opt_out')
    ->delete();
}