This project is not covered by Drupal’s security advisory policy.

The Role Contact module creates a "staff list" from the profiles of users in a particular role, e.g. "staff role". The user list is formatted via theme functions, with convenient header and footer fields. The sort order of users can be set via weights. A configurable subset of profile data is shown in the user list view, along with the user's picture along with a link to a per-user page, showing a (potentially different) subset of profile data. In addition, in both the list and per-user views, each user has a contact form - and is preallocated with a contact form category based on their name - that allows site visitors (both authenticated and anonymous) to send email to each user without revealing the user's email address.

The normal use case: a company or organisation wants to list a subset of its users as a "staff list". Some more senior staff members (e.g. CEO, president, directors, etc.) should be listed at the top, others alphabetically. Only some of each staff member's profile data should be shown - other data is only internally visible. It should be possible for site visitors to contact staff, but without revealing the staff member's email address directly to minimise snarfing of those addresses by spambots.

Note: this module has only been tested with MySQL.

This module is an Egressive contribution to the Drupal Community.

Update 18 Oct 2011:
We have not created Drupal 6 or Drupal 7 versions of this module because its functionality (and much more) can be achieved with Views based on users.

The only thing that Views doesn't do is allow anonymous users to access user contact forms... for that, see modules like Custom Contact. Haven't used it ourselves, but it appears to offer nice functionality related to user contact forms, including anonymous posting.

Project information

Releases