1.  Except as otherwise provided in subsection 2, a court issuing an order at the request of a prisoner in a state prison that affects the conditions of confinement of the prisoner shall provide the Director with:

(a) Sufficient prior notice of the intention of the court to enter the order; and

(b) An opportunity to be heard on the issue.

2.  The court is not required to provide the Director with prior notice pursuant to subsection 1 if the prisoner has commenced an action with the court challenging the conditions of his or her confinement and has served a copy of the action on the Director and the Attorney General.

3.  As used in this section, ‘conditions of confinement’ include, without limitation, the access of a prisoner to the resources of a law library, the privileges of a prisoner to receive visitors and to use a telephone, the type of meals provided to the prisoner, the place of confinement of a prisoner and the provision of medical care to a prisoner in a situation that is not an emergency.