You are here

function flag_get_types in Flag 6.2

Same name and namespace in other branches
  1. 5 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.

4 calls to flag_get_types()
flag_rules_action_info in includes/flag.rules.inc
Implementation of hook_rules_action_info().
flag_rules_condition_info in includes/flag.rules.inc
Implementation of hook_rules_condition_info().
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 71
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;
}