remettre les idées en place

Etymology
lit. 'to put the ideas of someone back into place'.

Verb

 * 1) to set straight, to provide (someone) with an attitude adjustment, to sort (someone's) ideas out for them, to talk sense into, to get (someone) back on the right track
 * 2)  to get one's head straight, to clear one's head, to get one's thoughts in order