Adding Date & Time Stamp to Subject line of Form Submission Email
I know I have to edit this line in blocks/form/controller.php, but I don't know what to how to change it without it breaking:
$mh->setSubject(t('%s Form Submission', $this->surveyName));
I found this page on the Date helper, but when I tried inserting variations of the code in controller.php, my form stopped working:http://www.concrete5.org/documentation/developers/helpers/date-and-...
Thank you for your help.
$today = date("F j, Y, g:i a");
...And changing the setSubject to:
However, I cannot figure out how to have both a text string and $today. When I try to combine them the submission breaks.
$mh->setSubject (t("WEB UPDATE: %s", $today));
Returns the subject: "WEB UPDATE: July 24, 2012, 5:09 pm"