brake warning switch

rewiring my car and was wondering if the warning light is just connected to the park brake or does it get wired to the prop valve too. also what does the prop valve switch do .is it to let you know if there is a leak. if so do I even need to wire to the prop valve