You are here

function _content_type_groups_format_group_data in Content type groups 7.2

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

Formats a content type group loaded with the API into a data structure for export

1 call to _content_type_groups_format_group_data()
content_type_groups_features_export_render in ./content_type_groups.features.inc
Implementation of hook_features_export_render().

File

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

Code

function _content_type_groups_format_group_data($group) {
  $group_data = array(
    'type' => $group->type,
    'name' => $group->name,
    'content_types' => $group->content_types,
  );
  return $group_data;
}