You are here

function flag_flag::applies_to_content_id_array in Flag 6

Same name and namespace in other branches
  1. 5 flag.inc \flag_flag::applies_to_content_id_array()

Similar to applies_to_content_id() but works on a bunch of IDs. It is called in the pre_render() stage of the 'Flag links' field to find out where that link applies. The reason we do a separate DB query, and not lump this test in the Views query, is to make 'many to one' tests possible without interfering with the rows, and also to reduce the complexity of the code.

File

./flag.inc, line 678
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

flag_flag
This abstract class represents a flag, or, in Views 2 terminology, "a handler".

Code

function applies_to_content_id_array($content_ids) {
  return array();
}