The entity selector functions add_right_relationship_field and add_left_relationship_field take the name of an allowable relationship as a parameter, but not the id. I added a utility function to get the name of a relationship from the id. The alternative would have been to change the entity selector functions to accept either a name "or" id but it seemed like a useful function to have available anyway, and technically a relationship could have an integer name (though it would not likely be a good name choice!).
Reason Developer Zone pages maintained by Matt Ryan
This page was last updated on 6 August 2015