Whenever the court or officer before which a person is offered as a witness is satisfied that he or she has a peculiar mode of swearing connected with or in addition to the usual form of administration, which, in witness' opinion, is more solemn or obligatory, the court or officer may, in its discretion, adopt that mode.