You are here

function flag_flag::uses_anonymous_cookies in Flag 7.3

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

Returns TRUE if this flag requires anonymous user cookies.

3 calls to flag_flag::uses_anonymous_cookies()
flag_flag::flagging_delete in includes/flag/flag_flag.inc
Unflag an entity by deleting a Flagging.
flag_flag::flagging_insert in includes/flag/flag_flag.inc
Create a new Flagging to flag an entity.
flag_flag::theme in includes/flag/flag_flag.inc
Renders a flag/unflag link.

File

includes/flag/flag_flag.inc, line 666
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 uses_anonymous_cookies() {
  global $user;
  return $user->uid == 0 && variable_get('cache', 0);
}