function flag_user::applies_to_content_id_array in Flag 5
Same name and namespace in other branches
- 6 flag.inc \flag_user::applies_to_content_id_array()
File
- ./
flag.inc, line 1193 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Class
- flag_user
- Implements a user flag.
Code
function applies_to_content_id_array($content_ids) {
// This user flag doesn't currently support subtypes so all users are
// applicable for flagging.
$passed = array();
foreach ($content_ids as $uid) {
if ($uid) {
// Exclude anonymous.
$passed[$uid] = TRUE;
}
}
return $passed;
}