In T2D, the number of Pdx1+ cells was reduced in both the islets and exocrine pancreas. Here, PDX1 is linked to type 2 diabetes mellitus.