It is simply the past perfect of the verb had : I had drunk too many piña coladas when the police stopped me. I had had too many piña coladas when the police stopped me.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.