What is the role of liver in digestion?

it just screte bile for putrefaction of food