In all actions and proceedings in the probate courts and circuit courts and other courts of like jurisdiction, where there is involved the administration of a trust, or where there is involved the sale of property for distribution, or where there is a partition in kind of real or personal property between tenants in common, the court having jurisdiction of such action or proceeding may ascertain a reasonable attorney's fee, to be paid to the attorneys or solicitors representing the trust, joint or common property, or any party in the action or proceeding, and is authorized to tax as a part of the costs in such action or proceeding such reasonable attorney's fee, which is to be paid when collected as the other costs in the proceeding to such attorneys or solicitors as may be directed or ordered by the court and to be a lien on the several parts in case of partition in kind.
Ala. Code § 34-3-60 (1975)