After movie stars dying of drug overdoses, murders and crime happening in Hollywood, it's no wonder people created local censorship boards and cut out parts of movies to be more suitable to watch in their communities. Hollywood studios and Will Hays joined together to form a list of "don'ts and be carefuls."
As there was no punishment, official government censorship was needed. So a new code was created.
"The code sets up high standards of performance for motion-picture producers," Hays proclaimed about the new code. "It states the considerations which good taste and community value make necessary in this universal form of entertainment."
The full code is here.
A brief overview of the code: