Closed (fixed)
Project:
Invite
Version:
5.x-1.9
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 May 2008 at 12:40 UTC
Updated:
16 Jun 2011 at 18:31 UTC
Jump to comment: Most recent
Comments
Comment #1
fumanchu182 commentedWhat you are looking to do can be take care of with the function hook_mail_alter(). This function is defined so that you can customize any of the parameters going into a drupal_mail() function. I am providing below an example of a hook_mail_alter so you can see by example how this is done. Notice how "invite-mail" is the string that is used to identify this email. With this kind of modularity you can then write theme functions based on any other criteria such as user role, permissions, etc... Please remember to replace "module" with the name of the module you are placing this code into. To keep transparency among the variables being passed in also write any modification functions to accept variables by reference.
Hope this helps.
-Anthony
Comment #2
Anonymous (not verified) commentedi think the op wanted to alter the form, not what gets sended throught the email. i'm at the same point. i would like to add content on top of the generated form, but i can't find were. any ideas?
Comment #3
sunSorry, this basic Drupal Form API fu, nothing special about Invite module. Please consult the handbooks about form_alter() on drupal.org for further information.
Comment #5
shamlah.v commentedHi am creating a project with "invite" module.... I need to cutomize the "New invitation" page.... ie., I just want To: --> text area., Message-->text area and send invite button .... can any one help me with it??? Where can i customize the module.
Thanks
Shamlah
Comment #6
lucascaro commentedA little bit too late, but if anyone else needs to do those customizations, you can give this a try: http://drupal.org/sandbox/lucascaro/1189764
Note that it's a sandbox and therefore alpha code, but it works for me so far and I would gladly accept any issues that could make it better.