You are here

function flag_flag::applies_to_content_id in Flag 6

Same name and namespace in other branches
  1. 5 flag.inc \flag_flag::applies_to_content_id()
  2. 6.2 flag.inc \flag_flag::applies_to_content_id()
  3. 7.2 flag.inc \flag_flag::applies_to_content_id()

Returns TRUE if the flag applies to the content with the given ID.

This is a convenience method that simply loads the object and calls applies_to_content_object(). If you already have the object, don't call this function: call applies_to_content_object() directly.

1 call to flag_flag::applies_to_content_id()
flag_flag::flag in ./flag.inc
Flags, on unflags, an item.

File

./flag.inc, line 311
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($content_id) {
  return $this
    ->applies_to_content_object($this
    ->fetch_content($content_id));
}