Ensure_List_OnQuickLaunch

Language:
PowerShell
Keywords:
SharePoint
Code Snippet

Function Ensure_List_OnQuickLaunch( [Microsoft.SharePoint.SPList]$tList
                                 , $OnQuickLaunch
                                 ) {
    if ($tList.OnQuickLaunch -ne $OnQuickLaunch) {
        $tList.OnQuickLaunch = $OnQuickLaunch
        Write-Output([System.String]::Format("List [{0}] : Setting OnQuickLaunch [{1}]", $tList.Title, $OnQuickLaunch))
        $tList.Update()
    }
} # Function Ensure_List_OnQuickLaunch(...)


Created 2011-10-13
comments powered by Disqus
Login