Remove 'Add Existing xxxxx to this record' button - version 1

 
This is the code snippet that so many people have now used I wanted to have some kind of version control! Lets call this version 1. The latest version can be found on the original post: