West Ham have agreed a deal to sign Barcelona midfielder Alex Song, subject to a medical. The 27-year-old Cameroon international made 31 appearances for the Hammers during a loan spell last season.