add more detail to study group definitions and email token
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user