Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

This module enhances Drupal's core contact functionality by adding permissions to control who can have a personal contact form. It allows administrators to fine-tune role-based access to personal contact forms.

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

Tracked releases
1
Tracked since
Jul 2026
Latest release
1 month ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
3.0.1 Stable Jul 1, 2026