Download & Extend

Enable Anonymous Contact Form by Default

Project:Anonymous Contact
Version:5.x-1.1
Component:Code
Category:feature request
Priority:normal
Assigned:carinadigital
Status:closed (won't fix)

Issue Summary

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

#1

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

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

cheers

#3

Component:Miscellaneous» Code
Assigned to:Anonymous» 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);
  }

#4

Status:needs review» closed (won't fix)