When I receive an email originated from the CommentAddNotification.class module, the email contains the comment but nothing else. I have instructed my users when adding a comment to enter their name in the Name field. After that they can add their comments.
I would also like to receive their name, if entered, in the email sent by the Notification module.
Below is what the current code looks like:
Current Code snippet (CommentAddNotification.class)
array('text' => $gallery->i18n('A new comment has been posted on %s. The full '
. 'comment is provided below.
I would like to add something like "by %x" to the code below. This would let me capture the name of the person entering the comment in the email.
My question is how do I get the information entered in the Name field into the variable "x" so it will be included in the email?
Requested Code snippet
array('text' => $gallery->i18n('A new comment has been posted on %s by %x. The full '
. 'comment is provided below.