You are here

public function ContentTypeGroup::deleteContentType in Content type groups 7.2

Same name and namespace in other branches
  1. 7 content_type_groups.module \ContentTypeGroup::deleteContentType()

Removes the given content type from the current content type group.

Parameters

string $content_type: Machine name of the content type to remove

File

./content_type_groups.class.inc, line 166

Class

ContentTypeGroup
Utility class to handle content type groups

Code

public function deleteContentType($content_type) {
  if (isset($this->content_types[$content_type])) {
    unset($this->content_types[$content_type]);
  }
}