NAL-i5K / tripal_chado_datasets

Provides an admin layer and forms for users to submit organisms and analysis into Chado
0 stars 0 forks source link

customizing mail messages #33

Closed bradfordcondon closed 6 years ago

bradfordcondon commented 6 years ago

the module uses drupal_mail to send out emails to users and admins for various events. The i5k specific part of those emails needs to move to a hook_mail_alter and/or an admin form. I think hook_mail_alter will be the better solution since it gives the admins more control over the messages.

In addition the message is built with the below two styles


      $message['body'][] = "<b>Name:</b> " . $params['name'] . "<br>";

          $message_body .= "Co-ordinator Email: " . $params['manual_curation_email'] . "<bR>";

I believe that in the first case, we will want to name the body section. This should allow people to hook in and replace that section. In the second type, it wont be alterable without replacing the whole message so it should move to the array form.

bradfordcondon commented 6 years ago

custom mail template (and eventually form templates as well) in https://github.com/NAL-i5K/i5k_custom_tripal

bradfordcondon commented 6 years ago

done.