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) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Determining if checksum is valid within a hook
Pages: [1]

Author Topic: Determining if checksum is valid within a hook  (Read 487 times)

SarahG (FountainTribe)

  • Ask me questions
  • ****
  • Posts: 782
  • Karma: 29
  • CiviCRM version: 4.4.7
  • CMS version: Drupal 6, Drupal 7
  • MySQL version: 5.5
  • PHP version: 5.3
Determining if checksum is valid within a hook
March 27, 2014, 07:48:31 pm
In an extension I am working on, I am using the hooks "civicrm_buildForm" and  "civicrm_buildAmount"  to add some extra function to a contribution page. The page may be accessed by an authenticated user or from a hyperlink with a checksum. (My intention is that the extra functionality not be available to anonymous users, unless the checksum and contact ID in the URL are valid)

How can I verify that the checksum and contact ID in the hyperlink are valid?






« Last Edit: March 27, 2014, 07:52:39 pm by epg »
Did I help you? Please donate to the Civi-Make-It-Happen campaign  CiviCRM for mobile devices! 

Coleman Watts

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 2346
  • Karma: 183
  • CiviCRM version: The Bleeding Edge
  • CMS version: Various
Re: Determining if checksum is valid within a hook
March 27, 2014, 07:50:03 pm
CRM_Contact_BAO_Contact_Utils::validChecksum()
Try asking your question on the new CiviCRM help site.

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion (Moderator: Donald Lobo) »
  • Determining if checksum is valid within a hook

This forum was archived on 2017-11-26.