function relation_entity_create in Relation 7
Callback to create a relation.
1 string reference to 'relation_entity_create'
- relation_entity_info in ./
relation.module - Implements hook_entity_info().
File
- ./
relation.module, line 1070 - Describes relations between entities.
Code
function relation_entity_create($values = array()) {
$relation = relation_create($values['relation_type'], array());
foreach ($values as $key => $value) {
$relation->{$key} = $value;
}
return $relation;
}