function flag_get_types in Flag 7.3
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.2 flag.inc \flag_get_types()
Returns all flag types defined on the system.
Return value
An array of flag type names.
5 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_rules_get_flag_types in ./
flag.rules.inc - Helper function which will return all the available flag types.
- flag_tokens in ./
flag.tokens.inc - Implements hook_tokens().
- flag_token_info in ./
flag.tokens.inc - Implements of hook_token_info().
File
- ./
flag.module, line 557 - The Flag module.
Code
function flag_get_types() {
$types =& drupal_static(__FUNCTION__);
if (!isset($types)) {
$types = array_keys(flag_fetch_definition());
}
return $types;
}