I don’t know how Bruce Banner, in control of the Hulk, was able to summon Mjolnir and turn himself into Thor. But then again, Odin’s spirit, which is now residing in the magical hammer, paid a visit inside Bruce’s mind so he might have something to do with it.
So The Hulk gains the power of Thor, while Thor is Hulked-out thanks to a gamma ray blast from the Hulk. Sounds crazy just typing all that.
From – Thor Vol. 6 #26