function flag_get_types in Flag 7.2
Same name and namespace in other branches
- 5 flag.inc \flag_get_types()
- 6.2 flag.inc \flag_get_types()
- 6 flag.inc \flag_get_types()
- 7.3 flag.module \flag_get_types()
Returns all flag types defined on the system.
4 calls to flag_get_types()
- flag_rules_action_info in ./
flag.rules.inc - Implements hook_rules_action_info().
- flag_rules_condition_info in ./
flag.rules.inc - Implements hook_rules_condition_info().
- flag_tokens in ./
flag.tokens.inc - Implements hook_tokens().
- flag_token_info in ./
flag.tokens.inc - Implements of hook_token_info().
File
- ./
flag.inc, line 90 - Implements various flags. Uses object oriented style inspired by that of Views 2.
Code
function flag_get_types() {
$types =& drupal_static(__FUNCTION__);
if (!isset($types)) {
$types = array_keys(flag_fetch_definition());
}
return $types;
}