function postmark_uninstall in Postmark 8
Same name and namespace in other branches
- 6 postmark.install \postmark_uninstall()
- 7 postmark.install \postmark_uninstall()
Implements hook_install().
File
- ./
postmark.install, line 28 - Install and uninstall routines.
Code
function postmark_uninstall() {
$config = \Drupal::configFactory()
->getEditable('system.mail');
$mail_plugins = $config
->get('interface');
if (!in_array('postmark', array_keys($mail_plugins))) {
return;
}
unset($mail_plugins['postmark']);
$config
->set('interface', $mail_plugins)
->save();
}