(735 ILCS 5/15-1510) (from Ch. 110, par. 15-1510)
    Sec. 15-1510. Attorney's Fees and Costs.
    (a) The court may award reasonable attorney's fees and costs to the defendant who prevails in a motion, an affirmative defense or counterclaim, or in the foreclosure action. A defendant who exercises the defendant's right of reinstatement or redemption shall not be considered a prevailing party for purposes of this Section. Nothing in this subsection shall abrogate contractual terms in the mortgage or other written agreement between the mortgagor and the mortgagee or rights as otherwise provided in this Article which allow the mortgagee to recover attorney's fees and costs under subsection (b).
    (b) Attorneys' fees and other costs incurred in connection with the preparation, filing or prosecution of the foreclosure suit shall be recoverable in a foreclosure only to the extent specifically set forth in the mortgage or other written agreement between the mortgagor and the mortgagee or as otherwise provided in this Article.
(Source: P.A. 95-961, eff. 1-1-09.)