6.2 Available Variables
There are two different hashes available to every third party script, %PROFILE and %SPONSOR, providing you with the member's information, which the action is being performed against. The %PROFILE has contains the member's profile, and the %SPONSOR hash contains the member's sponsor's profile, if the member has a sponsor.
The keys in each hash are the fields of the member database, and the values are the member's personal information. For example, the $PROFILE{'username'} variable would be the member's username, the $PROFILE{'first_name'} field being the member's first name, the $SPONSOR{'email'} field being the sponsor's e-mail address, and so on.