Hi,
How to check if the user has flagged content with any flag?
For example, a user created two lists: "a" and "b". He flags content in the "a" list. In node template it is possible to check if the user has flagged the content, whatever the list used ("a" or "b").
I try with :
$flag = flag_get_flag('fl_template_name');
if ($flag && $flag->is_flagged($node->nid, $GLOBALS['user']->uid))
But it doesn't work.
Do you know how to do it ?
Thanks in advance
Closed: outdated
3.3
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.