Hi,

i'm searching for a lightweight module to track user logins - your module seems to be the right one :-) Thanks.

I used hook_login_tracker_login_data_alter to store additional data (here: IP adress) in the db and it works. But how do i get this data in my View? Tried both: login tracker view and user view with relationship, but i had no success...

Could you please give me a hint? Thanks!!

Greets
pyqlo

Comments

leewillis77’s picture

Hi,

As any custom data that is added can be in absolutely any format, there's no way for it to expose items to views automatically. You'll need to write your own views handler that understands the custom data you've added.

pyqlo’s picture

Hi leewillis77, thanks for your reply! I'll try it.

leewillis77’s picture

Status: Active » Closed (works as designed)

Hi;

I'm closing this since there's nothing to fix here, and my previous reply answers the original how-to-question.