You are here

function mailcontrol_help in Mailcontrol 8

Same name and namespace in other branches
  1. 6 mailcontrol.module \mailcontrol_help()
  2. 7 mailcontrol.module \mailcontrol_help()

Implements hook_help().

File

./mailcontrol.module, line 14
This module holds functions useful for mail control.

Code

function mailcontrol_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.mailcontrol':
      return '<p>' . t('Have 100% control over the default mails sent by Drupal 8 out of the box.</br>
      This small module extends original Drupal 8 account settings page with the ability to turn ON/OFF all standard mails.</br>
      By default Drupal 8 provides no option to disable welcome emails, account cancellation confirmation or password reset.</br>
      This can be useful when you don\'t want to send those emails, or you are sending them through some external services or just for development purposes, etc.</br>
      You can access these settings under <a href=":url">admin/config/people/accounts</a>.</br>
      The module provide only interface modifications. The underlying functionality is already there by default in Drupal 7.', [
        ':url' => Url::fromRoute('entity.user.admin_form')
          ->toString(),
      ]) . '</p>';
  }
}