Removes the Publishing group and Workflow group from the Publish tab if they do not contain any elements. Also removes the Publish tab if all controls have been removed from the Publishing and Workflow groups.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
The API is used by the SPPageStateControl class. The methods are not intended to be called directly. If you add custom controls to the Publish tab, you can override this class to ensure they appear on the page.