I'm trying to do something similar to this PHP snippet: http://drupal.org/node/63422 - except I'd like to select based on a custom profile field instead of a role. Any tips on this?

Comments

Tresler’s picture

Have you looked at this module?

http://drupal.org/project/advuser

If it doesn't do what you need, I bet you could pull some code out of it that will do most of the work of your snippet for you.

Sam Tresler
http://www.treslerdesigns.com