You are here

protected function FlagNonGlobalCookieStorage::index_of in Flag 6.2

Same name and namespace in other branches
  1. 7.3 includes/flag.cookie_storage.inc \FlagNonGlobalCookieStorage::index_of()
  2. 7.2 flag.inc \FlagNonGlobalCookieStorage::index_of()
2 calls to FlagNonGlobalCookieStorage::index_of()
FlagNonGlobalCookieStorage::is_flagged in ./flag.inc
FlagNonGlobalCookieStorage::unflag in ./flag.inc
"Unflags" an item.

File

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

Class

FlagNonGlobalCookieStorage
Storage handler for non-global flags.

Code

protected function index_of($content_id) {
  return array_search($this
    ->cookie_key($content_id), $this->flaggings);
}