I want to get the number of items (content) flagged by the logged in user.
<?php $flag = flag_get_flag('flag1'); print $flag->get_count($nid); ?>
The above line would display the total number of times that content is flagged. How can i get number of items flagged by the logged in user. Lets say user A has flagged Content 1, Content2 and Content 3. Then the output needed is something as:
Number of Items flagged by [current:user]: 3