You are here

function flag_get_types in Flag 5

Same name and namespace in other branches
  1. 6.2 flag.inc \flag_get_types()
  2. 6 flag.inc \flag_get_types()
  3. 7.3 flag.module \flag_get_types()
  4. 7.2 flag.inc \flag_get_types()

Returns all flag types defined on the system.

2 calls to flag_get_types()
flag_token_list in includes/flag.token.inc
Implementation of hook_token_list().
flag_token_values in includes/flag.token.inc
Implementation of hook_token_values().

File

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

Code

function flag_get_types() {
  static $types;
  if (!isset($types)) {
    $types = array_keys(flag_fetch_definition());
  }
  return $types;
}