27-19-101. Definition of injunction -- by whom granted. An injunction is an order requiring a person to refrain from a particular act. The order may be granted by the court in which the action is brought or by a judge thereof and, when made by a judge, be enforced as the order of the court.