I'm using the Rules module in my Drupal site to do the following:
- when an existing user logs in
- check if there are required fields of the user account that have no value yet
- redirect to the user page and show a message
This is necessary, because we have added required fields to the user account. My problem is with the second step. I can add a check for every required field, but would like to use a more generic approach.
What I'm looking for is PHP code to check if the current logged in user has required fields that are empty.
I am a developer but in .NET and have no PHP knowledge, though I'm willing to learn and I'm confident I'll pick up quickly.