Hi,
In my custom module I want to access all the nodes which a certain user has flagged.

I had a look the tables but I can't seem to find the relation where flag id is matched to a list of users who have flagged it.

Where does flag store this ?

Cheers,
Vishal

Comments

quicksketch’s picture

The flag_content table stores all "User flagged something" records. Since Flag can flag things other than users, you also need to check that the type is "node" when selecting from that table.

vishalkhialani’s picture

@quicksketch: thanks :)

joachim’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.