editing "my account" information

Posts: 78
Joined: 01/22/2008

When my users click "My Account" in Drupal they see a line that lists the expiration of their product. I'd like to be able to add that same code to the Files Download page that appears when they click on "Files" on that user account tabs.

Or perhaps this is an easier question to answer. If I wanted to create a page using PHP input format, what code would I use to reveal the particular user's role expiration? In other words, I'd like to create a page that looks like this:

Dear [user]:

Your roles expires on [expiration date]

etc. etc.

Dan

Posts: 5625
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

That code is somewhat tied in with the user module's display of user pages. I'm not exactly sure how you'd separate it out for your own use, but start by looking in uc_roles.module for the function uc_roles_user(). Scroll down to the 'view' section of the switch() and you'll see your code. Good luck making sense of it. Eye-wink

Posts: 78
Joined: 01/22/2008

Thanks . . . it's pretty dense in there, but perhaps I'll get lucky.

Best,

Dan