Drupal is a registered trademark of Dries Buytaert
drupal 11.4.0 Update released for Drupal core (11.4.0)! drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)!

Provides further permissions to control how core's contact module behaves.

Permissions added:

  • "Have a personal contact form" which allows administrators to configure which roles get the ability to have a "Personal contact form".
  • Only on Drupal 8: Use ROLE's personal contact forms

Suggestions as to what other permissions would be useful are welcome.

How to use it

Simply install it like any other module, and under 'admin/user/permissions', configure what roles should be able to 'Have a personal contact form'.

How it works

The module does two things to every role which does NOT have the permission assigned:

  • Removes the option from its user edit page to activate his/her personal contact form, through hook_form_alter.
  • Removes access from anyone to see his/her user/%uid/contact by taking over the access callback for those pages.
  • Note that core's access callback is executed before our checks, and only if there is access granted by core, we run our checks.

Only since Drupal 8:
Configure access to personal contact forms per role. The permissions respects core's 'access user contact forms' permission, so that:

  • A user has 'access user contact forms': the user can access anyone's personal contact forms.
  • A user does not have 'access user contact forms', but has 'access RID contact forms' : the user can only access contact forms for users that have the specified role.

Buy the author a coffee to keep him motivated.

Ported to Drupal 7 thanks to pcambra.

Activity

Total releases
1
First release
Jul 2026
Latest release
1 day ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
3.0.1 Stable Jul 1, 2026