Skip to content

Instantly share code, notes, and snippets.

@KyleGawryluk
Created November 21, 2013 21:47
Show Gist options
  • Save KyleGawryluk/7590292 to your computer and use it in GitHub Desktop.
Save KyleGawryluk/7590292 to your computer and use it in GitHub Desktop.
public function set_relationship($module_name, $module_id, $link_field_name, $related_ids, $delete = 0){
$call_arguments = array(
'session' => $this->session,
'module_name' => $module_name,
'module_id' => $module_id,
'link_field_name' => $link_field_name,
'related_ids' => array($related_ids),
'name_value_list' => array(),
'delete' => $delete,
);
$result = $this->rest_request(
'set_relationship',
$call_arguments
);
return $result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment