You are here

function flag_rules_get_flag_types in Flag 7.3

Helper function which will return all the available flag types.

Return value

An array of flag type names keyed by the type name.

1 string reference to 'flag_rules_get_flag_types'
flag_rules_action_info in ./flag.rules.inc
Implements hook_rules_action_info().

File

./flag.rules.inc, line 468
Rules integration for the Flag module.

Code

function flag_rules_get_flag_types() {
  $types = array();
  foreach (flag_get_types() as $type) {
    $types[$type] = $type;
  }
  return $types;
}