AddContentTypeToList Method
Adds the specified content type to the specified list.
Object Oriented Interface
public function doAddContentTypeToList($contenttypeid, $listname);
Procedural Interface
insp_spsite_do_addcontenttypetolist($res, $contenttypeid, $listname);
Remarks
If successful, this call will apply the content type specified by ContentTypeId to the ListName.
NOTE: The content type that exists in the list after this call will contain a new Id.