CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Let a user modify her contact details from a profile + change subtype & role
Pages: [1]

Author Topic: Let a user modify her contact details from a profile + change subtype & role  (Read 717 times)

xavier

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4453
  • Karma: 161
    • Tech To The People
  • CiviCRM version: yes probably
  • CMS version: drupal
Let a user modify her contact details from a profile + change subtype & role
December 08, 2010, 09:38:25 am
Hi all,

got two roles (guest and activist) in drupal. Each role is mapped as a subtype in civicrm.

I'd like to be able to let the user switch from one to the other. When she does that, she need to provide extra info about her.

My initial idea was to create a new profile "update from guest to activist" that contains the extra info, and write a post hook that when saved
1) change the contact subtype
2) change the role in drupal

Also, it seems that the url for profile edit  http://example.org/civicrm/profile/edit?gid=10&reset=1&id=xxx needs the contact id. Would it make sense to modify profile/edit so if there isn't any id in the get param, it takes the id of the logged in user ?

Do you have a better idea to implement that ?

X+
-Hackathon and data journalism about the European parliament 24-26 jan. Watch out the result

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using Profiles (Moderator: Dave Greenberg) »
  • Let a user modify her contact details from a profile + change subtype & role

This forum was archived on 2017-11-26.