adminNotify

Description

Sends all admins an email to let them know a new member has joined.

Syntax

void adminNotify (string $type, int $memberID[, string $memberName])



Parameter $type

Expected type: Enumerated String
Description: The type of registration (currently only approval is used)

Possible string values
Allowed values Description
'activate' The member's account needs activating (not used at the moment)
'approval' The admin needs to approve this registration
'standard' Just your ordinary run-of-the-mill registration (not used at the moment)



Parameter $memberID

Expected type: Integer
Description: The ID of the new member



Parameter $memberName

Expected type: String
Description: The username of the new member. If not specified, it will be pulled from the database based on $memberID


Notes

  • Types supported are 'approval', 'activation', and 'standard'.
  • Called by registerMember() function in Subs-Members.php.
  • Email is sent to all groups that have the moderate_forum permission.
  • Uses the Login language file.
  • Uses the language set by each member (or the forum default if this isn't available)
Advertisement: