You are here

function flag_flag::applies_to_entity_id in Flag 7.3

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

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

2 calls to flag_flag::applies_to_entity_id()
flag_flag::access in includes/flag/flag_flag.inc
Determines whether the user may flag, or unflag, the given entity.
flag_flag::flag in includes/flag/flag_flag.inc
Flags, or unflags, an item.

File

includes/flag/flag_flag.inc, line 405
Contains the flag_flag class. Flag type classes use an 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_entity_id($entity_id) {
  return $this
    ->applies_to_entity($this
    ->fetch_entity($entity_id));
}