public static function ContentTypeGroup::removeContentType in Content type groups 7
Same name and namespace in other branches
- 7.2 content_type_groups.class.inc \ContentTypeGroup::removeContentType()
Removes the given content type across all content type groups. Use this when a content type is deleted.
Parameters
string $old_content_type: The content type's old machine name.
1 call to ContentTypeGroup::removeContentType()
- content_type_groups_node_type_delete in ./
content_type_groups.module - Implements hook_node_type_delete().
File
- ./
content_type_groups.module, line 352 - Module file for the Content type groups module.
Class
- ContentTypeGroup
- Utility class to handle content type groups
Code
public static function removeContentType($content_type) {
$result = db_delete(self::$table_types)
->condition('content_type', $content_type)
->execute();
return $result;
}