The question has come up in my mind as to what extent this sacrament restores us to grace.
Suppose you have a person who is dying of cancer and is lucky enough to have their own personal priest at their bedside as they lie dying. This person (a prominent Catholic politician) was a public denier of Catholic teaching on abortion and did everything they could to make abortion more available to women.
Suppose that this person still maintained their opinions on abortion (because they don’t personally believe that it’s sinful) and receives the sacrament of anointing prior to death.
If this person still maintains his beliefs, would holy orders restore him to grace? Does the efficacy on holy orders depend on the interior disposition of the recipient?