Cal. Civ. Proc. Code § 528
528
Enacted 1872.
An injunction cannot be allowed after the defendant has answered, unless upon notice, or upon an order to show cause; but in such case the defendant may be restrained until the decision of the Court or Judge granting or refusing the injunction.