function FlagGlobalCookieStorage::unflag in Flag 7.3
Same name and namespace in other branches
- 6.2 flag.inc \FlagGlobalCookieStorage::unflag()
- 7.2 flag.inc \FlagGlobalCookieStorage::unflag()
"Unflags" an item.
It just records this fact in a cookie.
Overrides FlagCookieStorage::unflag
File
- includes/
flag.cookie_storage.inc, line 76 - Contains the FlagCookieStorage class.
Class
- FlagGlobalCookieStorage
- Storage handler for global flags.
Code
function unflag($entity_id) {
$cookie_key = $this
->cookie_key($entity_id);
setcookie($cookie_key, 0, REQUEST_TIME + $this
->get_lifetime(), base_path());
$_COOKIE[$cookie_key] = 0;
}