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 »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Appropriate hook for altering renewal start date
Pages: [1]

Author Topic: Appropriate hook for altering renewal start date  (Read 395 times)

nigel_currie

  • I’m new here
  • *
  • Posts: 21
  • Karma: 1
Appropriate hook for altering renewal start date
December 05, 2013, 02:39:23 pm
Hi - I need to change membership renewal start dates to be the current (today's) date on my fixed period membership types. Currently getMembershipDatesForRenewal() returns the first day of fixed membership period (i.e. if I have membership running from 1st July it will use that as the start date).

I've looked at using hook_pre(), but there's no way for me to differentiate between a Renewal and an Edit. I have resorted to overriding MembershipType.php, but I'd rather use a hook and avoid possible problems when upgrades roll around.

Any ideas welcome!

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Developer Discussion »
  • APIs and Hooks (Moderator: Donald Lobo) »
  • Appropriate hook for altering renewal start date

This forum was archived on 2017-11-26.