function relation_insert in Relation 7
Insert a new relation in the database.
File
- ./
relation.module, line 697 - Describes relations between entities.
Code
function relation_insert($type, $endpoints) {
$relation = relation_create($type, $endpoints);
return relation_save($relation);
}