Month: November 2011

Programatically Disabling Content Approval on a Page Library

private void DisableContentApproval(SPWeb web) { SPList pagesLibrary = web.GetList("Pages"); if (pagesLibrary != null) { pagesLibrary.EnableModeration = false; pagesLibrary.Update(); } foreach (SPWeb subWeb in web.Webs) { DisableContentApproval(subWeb); } }

/ November 30, 2011