function mass_contact_uninstall in Mass Contact 8
Same name and namespace in other branches
- 5.2 mass_contact.install \mass_contact_uninstall()
- 5 mass_contact.install \mass_contact_uninstall()
- 6 mass_contact.install \mass_contact_uninstall()
- 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();
}