Commit 0d951e86 authored by Romain Therville's avatar Romain Therville 🐭
Browse files

Update to tx_nG6_utils.php

New function get_multiple_purge_demand_mail() to warn the nG6 admins
that a purge demand already exists for the given project.

Issue #192
parent b81c8185
......@@ -266,6 +266,32 @@ $template_mail.='<p>Yours sincerely</p>
return $mail;
}
/**
* Returns the mail content to warn the nG6 admins that a purge demand already exists for the given project
* @param string $project_name
* @return $mail, a string containing the mail content
*/
static function get_multiple_purge_demand_mail($project_name) {
$template_mail='
<html>
<head>
<title>Data Purge on nG6</title>
</head>
<body>
<p>Dear nG6 admin,</p>
<p>A purge demand already exists for the project ###PROJECT_NAME###.</p>
<p>Please, purge the data corresponding to the previous purge demand before opening a new one.</p></br>
<p>Yours sincerely</p>
<p>nG6 team (for GeT-Genotoul and Bioinfo-Genotoul facilities)</p>
</body>
</html>
';
$mail = str_replace('###PROJECT_NAME###', $project_name, $template_mail);
return $mail;
}
/**
* hash password (using default encryption method)
* @param string $password
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment