336. Within five years:
(a) An action for mesne profits of real property.
(b) An action for violation of a restriction, as defined in Section 784 of the Civil Code. The period prescribed in this subdivision runs from the time the person seeking to enforce the restriction discovered or, through the exercise of reasonable diligence, should have discovered the violation. A failure to commence an action for violation of a restriction within the period prescribed in this subdivision does not waive the right to commence an action for any other violation of the restriction and does not, in itself, create an implication that the restriction is abandoned, obsolete, or otherwise unenforceable. This subdivision shall not bar commencement of an action for violation of a restriction before January 1, 2001, and until January 1, 2001, any other applicable statutory or common law limitation shall continue to apply to that action.
(Amended by Stats. 1998, Ch. 14, Sec. 3. Effective January 1, 1999.)