What was the Hays Code, or PCA (Production Code Administration)?
A set of rules and guidelines that Hollywood films had to follow in the 1930s-1960s.
The creator was a strong Catholic, and so he wanted to make sure that films kept the Catholic and family values.
Examples of rules: no sexually explicit content, good guys always win & bad guys always lose, no offensive language, nothing that promotes bad values or perversion.