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 (Moderator: Dave Greenberg) »
  • Drupal sending profile edit token to contact
Pages: [1]

Author Topic: Drupal sending profile edit token to contact  (Read 742 times)

stijnbe

  • I’m new here
  • *
  • Posts: 7
  • Karma: 0
Drupal sending profile edit token to contact
May 28, 2010, 06:58:18 am
Hi
I need to create a module that mails a profile edit token to a certain contact. Is there an API I can use? Or another way to solve this problem. The module will be written in drupal. Creating the token link would be enough. Sending the mail is possible in drupal.

thx in advance

Stijnbe

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Drupal sending profile edit token to contact
May 28, 2010, 08:48:31 am

once civicrm is initialize you can use

Code: [Select]
  $url = CRM_Utils_System::url( 'civicrm/profile/edit', "reset=1&gid={$YOUR_PROFILE_ID}&id={$YOUR_CONTACT_ID}&cs="
  require_once 'CRM/Contact/BAO/Contact/Utils.php';
  $url .= CRM_Contact_BAO_Contact_Utils::generateChecksum( $YOUR_CONTACT_ID );

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM (Moderator: Dave Greenberg) »
  • Drupal sending profile edit token to contact

This forum was archived on 2017-11-26.