You are here

public static function ContentTypeGroup::removeContentType in Content type groups 7.2

Same name and namespace in other branches
  1. 7 content_type_groups.module \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.class.inc, line 224

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;
}