function flag_flag::applies_to_content_id in Flag 7.2
Same name and namespace in other branches
- 5 flag.inc \flag_flag::applies_to_content_id()
- 6.2 flag.inc \flag_flag::applies_to_content_id()
- 6 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.
2 calls to flag_flag::applies_to_content_id()
- flag_flag::access in ./
flag.inc - Determines whether the user may flag, or unflag, the given content.
- flag_flag::flag in ./
flag.inc - Flags, or unflags, an item.
File
- ./
flag.inc, line 438 - 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));
}