My case site has student and teacher accounts (teacher/student radio buttons). When user registers as a teacher, admin has to be notified so that admin performs further checks to accept the account.

How can I do this programmatically


You should be able to accomplish this easily using the Rules module:

  1. Create a rule that triggers 'After saving a new account'
  2. Add a condition that determines whether the value of the field is set to the teacher value (Using 'Data Comparison').
  3. Add an action element to send a notification email (System > Send Mail).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.