No county shall be required to pay costs associated with the temporary confinement or commitment of a person to a designated mental health facility, including, but not limited to, the cost of housing and treatment. All costs associated with a probable cause hearing, including cost of counsel, shall be paid by the State General Fund upon order of the judge of probate; except, that if the petition is denied and the petitioner is not indigent and is not a law enforcement officer or other public official acting within the line and scope of his or her duties, all costs may be taxed against the petitioner, or if the petition is granted and the person sought to be committed is not indigent, the judge of probate may order all costs paid from the estate of the person committed.
Ala. Code § 22-52-93 (1975)