You are here

function content_copy_types in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 5 content_copy.module \content_copy_types()
  2. 6.3 modules/content_copy/content_copy.module \content_copy_types()
  3. 6.2 modules/content_copy/content_copy.module \content_copy_types()

Get all content types.

1 call to content_copy_types()
content_copy_export_form in modules/content_copy/content_copy.module
A form to export field definitions.

File

modules/content_copy/content_copy.module, line 452
Adds capability to import/export CCK field data definitions.

Code

function content_copy_types() {
  $types = array();
  $content_info = _content_type_info();
  foreach ($content_info['content types'] as $type_name => $val) {
    $types[$type_name] = $val['name'] . ' (' . $type_name . ')';
  }
  return $types;
}