function flag_get_flag_flagging_data in Flag 7.3
Get all flagged entities in a flag.
Parameters
$flag_name: The flag name for which to retrieve flagged entites.
Return value
An array of flagging data, keyed by the flagging ID.
File
- ./
flag.module, line 2086 - The Flag module.
Code
function flag_get_flag_flagging_data($flag_name) {
$flag = flag_get_flag($flag_name);
$result = db_select('flagging', 'fc')
->fields('fc')
->condition('fid', $flag->fid)
->execute();
return $result
->fetchAllAssoc('flagging_id');
}