League One's bottom club Barnsley have extended the contract of winger Adam Hammill until June 2016.
The 27-year-old, who had a two-year spell at the club from 2009 before joining Wolves, had been on a short-term contract since November.
Hammill told the club website: "Since coming back I've enjoyed every minute and I've said all along that I would love to remain here beyond January.
"We have a great bunch of lads here and I really feel at home."
After making two appearances for Huddersfield at the start of the season, Hammill was released by the Terriers.
He scored on his first game back at Barnsley and has made six appearances so far - and netted on Saturday as the Tykes beat Wigan on penalties to progress to the northern area final of the Johnstone's Paint Trophy.
Barnsley head coach Lee Johnson said: "It's clear that Adam is passionate about this football club.
"He's committed to the cause and he has proven qualities, so it's a deal that I'm thrilled to get over the line and we can now plan for the second half of the season with Adam a key part of our squad.
"You only have to look at the way he celebrated his goal on Saturday to see just how big a connection he has with the fans, so I'm sure they're just as pleased as I am to have him on board for the remainder of the season."
Meanwhile, Newcastle striker Ivan Toney has extended his loan spell at Oakwell until 9 January.