West Ham have confirmed that striker Carlton Cole has signed a new 18-month contract with the club.
The 30-year-old returned to Upton Park on a short-term deal in October having originally been released from the club at the end of his previous contract.
The England international has scored four goals in 11 Barclays Premier League fixtures since his return, including the opener in the vital 2-0 victory at Cardiff on Saturday that took the Hammers out of the relegation zone.
Cole, who originally moved to West Ham from Chelsea in 2006, became a favourite among the Hammers fans and his performances earned him a first England cap against Spain in 2009.
He scored the opening goal as West Ham beat Blackpool in the 2012 play-off final to return the the Premier League under Allardyce but only managed two goals throughout the whole of last season.
A summer move to Ligue 1 was believed to be in the offing, but after no move materialised, Cole returned to train with West Ham before penning a short-term deal, with Carroll and Mladen Petric both sidelined and fellow striker Modibo Maiga unable to carry the goalscoring burden alone.
Petric has since been released after his own short-term contract came to an end but Cole has been re-signed and will compete against a fit-again Carroll for the main striker's berth in Allardyce's side.
Saturday's win at Cardiff was West Ham's first in the Premier League since November and, with Allardyce welcoming former club Newcastle to Upton Park this weekend, the Hammers need to continue to pick up points if they are to avoid dropping back into the bottom three.