I would like to use RedHen CRM in my website: http://szentandras.ujevangelizacio.hu/. But I need a new permission: "create own redhen contact". After registration I want to redirect new users to "redhen/contact/add/volunteer" to fill out own volunteer contact. I have to be confident that they have completed volunteer contact, when they later fill the registration form.
I'm not a developer, I can only help with translation. If someone do this feature I will use RedHen CRM, and I will make the Hungarian translation.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 2008910-create-own-contact.patch | 3.59 KB | jon pugh |
Comments
Comment #1
seanberto commentedThe "RedHen Contact to Drupal User" connection isn't built to support a user creating their own contact record manually. Rather, you'll want to use Rules or a bit of glue code to create the contact record programmatically when the user account is created. From there, permissions exist for viewing/editing just the contact record associated with your user account.
Comment #2
levelos commentedI think we should keep this open as it's a good addition to make and not too difficult.
Comment #3
bubuThanks for the suggestion! I have studied the Rule module. Here is the rule:
Comment #4
bubuI think you can close this feature request. RedHen 1.6 supports this via new "create a contact during user registration" feature. Thank you very much!
Comment #5
levelos commentedHappy to do so, thanks.
Comment #7
micnap commentedReopening this:
I think it would still be beneficial to provide a rules action that takes a user account and creates a Redhen Contact from it in addition to the user_registration_form_alter. I say this because when the Commerce module creates a new user account during checkout, it does not use the user_registration_form to create the new user. It uses entity_save. So, no contact record is created. Having a rules action available that takes a user account and contact type would be useful.
Comment #8
jon pughThis would be really useful. The use case applies when adding RedHen to an existing site, where users already exist so they never get a contact record unless an admin adds it themselves.
I'll work on a patch.
Comment #9
jon pughComment #10
jon pughPatch attached.
It relies on the "Default Contact Type" setting used for user registration, so I moved that setting out of the "User Registration" fieldset in the "admin/config/redhen/crm" form.
It correctly associates the contact record with the user, but does not automatically set the email address on the contact record. Would we want to do this?
Comment #11
jon pughComment #12
edward.peters commentedI would appreciate it if we can make the permissions more granular. My use case is that I want a site user (account only) to have the option to create their own contact record as a membership application. The only way I can allow them to do this is to give them create, edit, delete permissions. Can we separate these out by role?