hook_mail_backend_info_alter

hook_mail_backend_info_alter(&$info)

Alter the list of mail backend plugin definitions.

Parameters

array $info: The mail backend plugin definitions to be altered.

See also

\Drupal\Core\Annotation\Mail

\Drupal\Core\Mail\MailManager

Related topics

Hooks
Define functions that alter the behavior of Drupal core.

File

core/core.api.php, line 2104
Documentation landing page and topics, plus core library hooks.

Code

function hook_mail_backend_info_alter(&$info) {
  unset($info['test_mail_collector']);
}
doc_Drupal
2016-10-29 09:18:20
Comments
Leave a Comment

Please login to continue.