Following on from: http://drupal.org/node/319264

I plan to have a welcome_mail.inc in ./profiles/hostmaster/modules/provision/platform which is included in _provision_drupal_install_schema().

welcome_mail.inc will define an array called $mail, with $mail['subject'] and $mail['body'].

The text of those two elements will be replaced with $variables and sent on to drupal_mail().

Comments

adrian’s picture

That's fine.

But it might also need to be overridden on an install profile level.
So rename it provision_welcome_mail , and add an if file_exists('profiles/$profile/provision_welcome_mail.inc')

benkant’s picture

Status: Active » Needs review
StatusFileSize
new616 bytes
new2.62 KB

Here's the patch.

Also an example provision_welcome_mail.inc which should be added to the repository.

adrian’s picture

Status: Needs review » Fixed

committed. thanks.

my local mail queue is broken, so if there are any errors anyone else notices, don't hesitate to re-open.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.