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 CiviMember (Moderator: Deepak Srivastava) »
  • Display Drupal message on login when membership about to expire
Pages: [1]

Author Topic: Display Drupal message on login when membership about to expire  (Read 1154 times)

michaellenahan

  • I post occasionally
  • **
  • Posts: 30
  • Karma: 0
    • mick.appspot.com
Display Drupal message on login when membership about to expire
November 09, 2011, 02:50:48 am
Hello, everyone
I want to show a drupal message on login when we have reached the renewal reminder day (/civicrm/admin/member/membershipType).
Any tips on how to do this - if it's a drupal module would you be willing to share some code?
Thanks
Michael

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: Display Drupal message on login when membership about to expire
November 09, 2011, 05:32:19 am

1. write a drupal module

2. implement hook_login

3. add the message if needed in the above hook

You should look at the code in: drupal/modules/civicrm_member_roles/* I suspect you can borrow a fair amount of code from there

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 »
  • Using CiviMember (Moderator: Deepak Srivastava) »
  • Display Drupal message on login when membership about to expire

This forum was archived on 2017-11-26.