Clone of Create user relation programmatically

Public

relation_entity_collector can be used to create relations and relation info page lists other related modules that provide interfaces for the relation module.

Get raw version
php
  1. <?php
  2. $endpoints = array(
  3. array('entity_type' => 'user', 'entity_id' => 4575),
  4. array('entity_type' =>'user', 'entity_id' => 4103),
  5. );
  6.  
  7. dpm(relation_insert('is parent of', $endpoints));
  8. ?>