The bonds required to be given as a condition precedent to the issue of restraining orders or injunctions shall be filed with the clerk of said court and be payable to the State of Alabama and conditioned to pay all damages that any person, firm, company, or corporation shall sustain by reason of the enjoining or restraining of the enforcement of such order or orders, in the event the injunction shall be dissolved or vacated, or for any reason cease to be operative.