Enable Anonymous Contact Form by Default

jakewalk - May 15, 2008 - 09:01
Project:Anonymous Contact
Version:5.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:carina
Status:needs review
Description

Is it possible to enable the anonymous contact form for all users by default? Or how can I enable it for all users without editing every single user by hand?

#1

ezra-g - May 16, 2008 - 20:02
Title:Anonymous contact form enabled by default?» Enable Anonymous Contact Form by Default
Category:support request» feature request

Right now that's not possible without loading each user. I agree that the form should be enabled by default, or there should at least be a configurable option to set what the default is.

#2

edmonkey - October 26, 2008 - 23:48

is there any update on getting this to autocomplete when registering?

cheers

#3

carina - March 18, 2009 - 20:02
Component:Miscellaneous» Code
Assigned to:Anonymous» carina
Status:active» needs review

It seems that the module almost works properly. When a new user is created, contact_anon_user() is called with the insert operation. It takes the default defined setting for contact but assigns that to the 'contact' account detail variable (which I think is an error unless we are overloading here). I don't see why we would want the default settings for contact module to be the same as the default settings for contact_anon module.

Here's a a quick workaround. Note: I am on drupal 6.10

lines 64-66 in contact_anon.module

elseif ($op == 'insert') {
    $edit['contact'] = variable_get('contact_default_status', 1);
  }

change to

elseif ($op == 'insert') {
    $edit['contact_anon'] = variable_get('contact_anon_default_status', 1);
  }

 
 

Drupal is a registered trademark of Dries Buytaert.