You are here

function FlagNonGlobalCookieStorage::unflag in Flag 6.2

Same name and namespace in other branches
  1. 7.3 includes/flag.cookie_storage.inc \FlagNonGlobalCookieStorage::unflag()
  2. 7.2 flag.inc \FlagNonGlobalCookieStorage::unflag()

"Unflags" an item.

It just records this fact in a cookie.

Overrides FlagCookieStorage::unflag

File

./flag.inc, line 1895
Implements various flags. Uses object oriented style inspired by that of Views 2.

Class

FlagNonGlobalCookieStorage
Storage handler for non-global flags.

Code

function unflag($content_id) {
  if (($index = $this
    ->index_of($content_id)) !== FALSE) {
    unset($this->flaggings[$index]);
    $this
      ->write();
  }
}