function flag_get_flagged_content in Flag 6.2
Same name and namespace in other branches
- 7.2 flag.module \flag_get_flagged_content()
Get all flagged content in a flag.
Parameters
The flag name for which to retrieve flagged content.:
File
- ./
flag.module, line 1461 - The Flag module.
Code
function flag_get_flagged_content($flag_name) {
$return = array();
$flag = flag_get_flag($flag_name);
$result = db_query("SELECT * FROM {flag_content} WHERE fid = %d", $flag->fid);
while ($row = db_fetch_object($result)) {
$return[] = $row;
}
return $return;
}