add more detail to study group definitions and email token

This commit is contained in:
Nathan Coad
2018-06-16 18:39:55 +10:00
parent be5d1e8c2f
commit ed45d52007
5 changed files with 57 additions and 20 deletions

View File

@@ -976,11 +976,11 @@ function booking_mail($key, &$message, $params) {
// Add attachment when available.
// From https://drupal.stackexchange.com/questions/101035/send-attachments-with-drupal-mail
if (isset($params['attachment'])) {
$message['params']['attachments'][] = $params['attachment'];
}
//if (isset($params['attachment'])) {
// $message['params']['attachments'][] = $params['attachment'];
//}
watchdog('booking_debug', "<pre>Mail hook:\n@info</pre>", array('@info' => print_r( $message, true)));
//watchdog('booking_debug', "<pre>Mail hook:\n@info</pre>", array('@info' => print_r( $message, true)));
}
/**
@@ -1011,7 +1011,7 @@ function booking_mail_alter(&$message) {
foreach($headers as $key => $value) {
$message['headers'][$key] = $value;
}
//watchdog('booking_debug', "<pre>Mail alter hook:\n@info</pre>", array('@info' => print_r( $message, true)));
watchdog('booking_debug', "<pre>Mail alter hook:\n@info</pre>", array('@info' => print_r( $message, true)));
}
/**