public function ContentTypeGroup::addContentType in Content type groups 7.2
Same name and namespace in other branches
- 7 content_type_groups.module \ContentTypeGroup::addContentType()
Adds a new content type to the current content type group.
Parameters
string $content_type: Machine name of the content type group to add
int $weight:
File
- ./
content_type_groups.class.inc, line 153
Class
- ContentTypeGroup
- Utility class to handle content type groups
Code
public function addContentType($content_type, $weight = 0) {
$this->content_types[$content_type] = array(
'name' => NULL,
'weight' => $weight,
);
}