Disable "results of this submission" URL for anonymous users.

dharmatech - June 16, 2008 - 20:45
Project:Webform
Version:5.x-2.0
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:by design
Description

We would like to remove the link "The results of this submission may be viewed at:" for anonymous users. It would be easy enough to hack the code, but I'm wondering if this is useful for other people as well. Maybe a checkbox in the Webform mail settings "Include results URL for anonymous users." I've started a patch but wanted to get some feedback first.

The other option is to skip the configuration and just do a check in theme_webform_mail_message in the same manner that it handles "Submitted by user" vs. "Submitted by anonymous user."

Any thoughts?

#1

quicksketch - June 17, 2008 - 18:26

If needing to change the email in any way, you should just follow the instructions in THEMING.txt to override the email for the particular Webform you want to affect (or affect all of them at once). I'd prefer not to get into too great a detail with the configuration of email presentation when the theme system is there for the same purpose.

#2

dharmatech - June 18, 2008 - 14:49

I agree, the theme is the better way to go. I didn't know it was possible to affect all the forms, I thought it was node specific.

Thanks!

#3

quicksketch - June 19, 2008 - 01:57
Status:active» by design

Sorry yes it's very possible to override all forms, but the instructions only provide specifics on doing one form at a time. If you omit the _[nid] suffix from the theme function, you effectively edit all the default Webform emails at once.

I'll go ahead and mark as by design.

 
 

Drupal is a registered trademark of Dries Buytaert.