Morphine inhibits gastrointestinal transit in the rat primarily by impairing propulsive activity of the small intestine.