Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By njehlen on
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
Advanced User Module
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