You are here

function _content_type_groups_get_node_types in Content type groups 7.2

Same name and namespace in other branches
  1. 7 content_type_groups.features.inc \_content_type_groups_get_node_types()

Returns the site's content types.

Return value

array Machine names of all content types on the site.

2 calls to _content_type_groups_get_node_types()
content_type_groups_features_rebuild in ./content_type_groups.features.inc
Implementation of hook_features_rebuild(). [component_hook]
_content_type_groups_store_group_data in ./content_type_groups.features.inc
Stores exported content type group data in the database

File

./content_type_groups.features.inc, line 173
Export functionality for the content type groups module.

Code

function _content_type_groups_get_node_types() {
  $types = array();
  foreach (node_type_get_types() as $type) {
    $types[] = $type->type;
  }
  return $types;
}