public function ContentTypeGroup::addContentType in Content type groups 7
Same name and namespace in other branches
- 7.2 content_type_groups.class.inc \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.module, line 281 - Module file for the Content type groups module.
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,
);
}