(a) A person who takes a juvenile into custody without a court order under G.S. 7B‑500 shall proceed as follows:
(1) Notify the juvenile's parent, guardian, custodian, or caretaker that the juvenile has been taken into temporary custody and advise the parent, guardian, custodian, or caretaker of the right to be present with the juvenile until a determination is made as to the need for nonsecure custody. Failure to notify the parent that the juvenile is in custody shall not be grounds for release of the juvenile.
(2) Release the juvenile to the juvenile's parent, guardian, custodian, or caretaker if the person having the juvenile in temporary custody decides that continued custody is unnecessary.
(3) The person having temporary custody shall communicate with the director of the department of social services who shall consider prehearing diversion. If the decision is made to file a petition, the director shall contact the judge or person delegated authority pursuant to G.S. 7B‑502 for a determination of the need for continued custody.
(b) A juvenile taken into temporary custody under this Article shall not be held for more than 12 hours, or for more than 24 hours if any of the 12 hours falls on a Saturday, Sunday, or legal holiday, unless:
(1) A petition or motion for review has been filed by the director of the department of social services, and
(2) An order for nonsecure custody has been entered by the court. (1979, c. 815, s. 1; 1981, c. 335, ss. 1, 2; 1994, Ex. Sess., c. 17, s. 1; c. 27, s. 3; 1995, c. 391, s. 2; 1998‑202, s. 6; 1999‑456, s. 60.)