function FlagNonGlobalCookieStorage::unflag in Flag 7.3
Same name and namespace in other branches
- 6.2 flag.inc \FlagNonGlobalCookieStorage::unflag()
- 7.2 flag.inc \FlagNonGlobalCookieStorage::unflag()
"Unflags" an item.
It just records this fact in a cookie.
Overrides FlagCookieStorage::unflag
File
- includes/
flag.cookie_storage.inc, line 132 - Contains the FlagCookieStorage class.
Class
- FlagNonGlobalCookieStorage
- Storage handler for non-global flags.
Code
function unflag($entity_id) {
if (($index = $this
->index_of($entity_id)) !== FALSE) {
unset($this->flaggings[$index]);
$this
->write();
}
}