The vitamin D receptor (VDR) protects pancreatic beta cells against Forkhead box class O1 (FOXO1)-induced mitochondrial dysfunction and cell apoptosis.