function flag_flag::uses_anonymous_cookies in Flag 6.2
Same name and namespace in other branches
- 7.3 includes/flag/flag_flag.inc \flag_flag::uses_anonymous_cookies()
- 7.2 flag.inc \flag_flag::uses_anonymous_cookies()
Returns TRUE if this flag requires anonymous user cookies.
2 calls to flag_flag::uses_anonymous_cookies()
- flag_flag::flag in ./
flag.inc - Flags, or unflags, an item.
- flag_flag::theme in ./
flag.inc - Renders a flag/unflag link. This is a wrapper around theme('flag') that, in Drupal 6, easily channels the call to the right template file.
File
- ./
flag.inc, line 606 - 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 uses_anonymous_cookies() {
global $user;
return $user->uid == 0 && variable_get('cache', 0);
}