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.
To hide Email button is necessary to check the following condition at contact.author-pane.inc:
global $user;
if (_contact_personal_tab_access($variables['account']) && $variables['account']->uid != $user->uid) {
Comment | File | Size | Author |
---|---|---|---|
author-pane-hide-contact-7.patch | 715 bytes | SimonLitt | |
Comments
Comment #1
Scyther CreditAttribution: Scyther commentedIn the _contact_personal_tab_access() this check is done. But if you are a user with the permission
user_access('administer users')
you will still see the link, and I personally think that it is okey for those few that has this permission.