You are here

function relation_rules_get_type_options in Relation 7

Options list callback for fetching relation types.

2 string references to 'relation_rules_get_type_options'
relation_entity_property_info in ./relation.module
Implements hook_entity_property_info().
relation_rules_action_info in ./relation.rules.inc
Implements hook_rules_action_info().

File

./relation.rules.inc, line 90
Implements the Rules module API for Relation.

Code

function relation_rules_get_type_options() {
  $options = array();
  $types = relation_get_types();
  foreach ($types as $type) {
    $options[$type->relation_type] = $type->label;
  }
  return $options;
}