Chosen Solution

I need to know what part is that on the logic board next to the connection ports thats 2 inches long plastic with one connector. I broke the wire and need a replacement. Is that part important? What is the funtion?

See if the parts you are looking for are in this guide: MacBook Pro 13" Unibody Mid 2012 Right Speaker/Subwoofer Replacement