[x] Let users be contactable on their profile pages

something like that in the settings would be good if you only want to use the "contact us" feature.

sorry for not attaching patch. i feel to new to drupal to make something for the core. i need more experience with developing modules.

CommentFileSizeAuthor
#9 userformhide_0.patch1.06 KBbudda
#1 userformhide.patch1 KBbudda

Comments

budda’s picture

Title: Disable profile contact forms checkbox » Disable profile contact forms checkbox and tab
Assigned: Unassigned » budda
Category: feature » bug
Priority: Minor » Normal
StatusFileSize
new1 KB

The attached patch introduces a new permission for the 'contact' module.

You must now associate the ability to have user contact forms to a role.

If a user role doesn't have the permission both the 'contact' tab and the checkbox form are hidden from view.

Previously it was not possible to get rid of the 'contact' tab even when the users had their contact checkbox un-ticked. Not good!

jjeff’s picture

Status: Active » Needs review
budda’s picture

Would be good to get this included in 4.7 before people start trying to use the contact.module on their new 4.7 sites.

Dublin Drupaller’s picture

+1 for this idea. Only thing I would change is the permission title, instead of "user form" I would have called it something more intuitive like "access contact tab".

"user form" can mean so many things.

Dub

budda’s picture

I went with 'user form' is it is listed under the 'contact' module heading, and i figured it would be clear from that -- rather than having long permission names.

But if there is a better fitting Drupal standard, what the heck if it can get in to the 4.7 release!

markus_petrux’s picture

I have marked this issue as a dup of this one.

+1 for the idea :-)

What about 'contact users' or something more user friendly? 'user form' looks like you need to look at the code to figure out what is it.

budda’s picture

'user contact form' ?

markus_petrux’s picture

+1 :-)

budda’s picture

Assigned: budda » Unassigned
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new1.06 KB

I've changed the permission name as discussed.

dries’s picture

Category: bug » feature

This is a feature request.

drumm’s picture

Status: Reviewed & tested by the community » Needs work

All of the permissions should start with a verb. Maybe "use user contact form" or "can have a user contact form."

Bèr Kessels’s picture

dries’s picture

Status: Needs work » Closed (duplicate)