apply_for_role.module in Apply for role 8
Same filename and directory in other branches
File
apply_for_role.moduleView source
<?php
/**
* Implements hook_mail().
*
* Purpose: Establish a mailer for sending out messages from apply for role.
*/
function apply_for_role_mail($key, &$message, $params) {
switch ($key) {
case 'apply_for_role':
$message['from'] = \Drupal::config('system.site')
->get('mail');
$message['subject'] = $params['subject'];
$message['body'][] = $params['body'];
break;
}
}
Functions
Name | Description |
---|---|
apply_for_role_mail | Implements hook_mail(). |