(a) Notwithstanding Section 22.007(a), in this section, "court" means a constitutional county court, district court, or statutory county court, including a statutory probate court.
(b) A court may not prohibit a person from:
(1) executing a new will;
(2) executing a codicil to an existing will; or
(3) revoking an existing will or codicil in whole or in part.
(c) Any portion of a court order that purports to prohibit a person from engaging in an action described by Subsection (b) is void and may be disregarded without penalty or sanction of any kind.