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?

Comments

ezra-g’s picture

Title: Anonymous contact form enabled by default? » Enable Anonymous Contact Form by Default
Category: support » feature

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.

edmonkey’s picture

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

cheers

carinadigital’s picture

Component: Miscellaneous » Code
Assigned: Unassigned » carinadigital
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);
  }
carinadigital’s picture

Status: Needs review » Closed (won't fix)