You are here

function flag_flag::applies_to_entity in Flag 7.3

Returns TRUE if the flag applies to the given entity.

Derived classes must implement this.

@abstract

1 call to flag_flag::applies_to_entity()
flag_flag::applies_to_entity_id in includes/flag/flag_flag.inc
Returns TRUE if the flag applies to the entity with the given ID.
1 method overrides flag_flag::applies_to_entity()
flag_entity::applies_to_entity in includes/flag/flag_entity.inc
Checks whether the flag applies for the current entity bundle.

File

includes/flag/flag_flag.inc, line 394
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($entity) {
  return FALSE;
}