public function register_related_object($name, $label, $options = null)
{
if (empty($name) || empty($label)) {
return false;
}
$related_object = array('label' => $label, 'group' => 'Custom Relationships', 'simple' => true, 'bidirectional' => false, 'data' => array(), 'data_callback' => null);
$related_object = array_merge($related_object, $options);
self::$custom_related_objects[$name] = $related_object;
return true;
}