You are here

function content_copy_types in Content Construction Kit (CCK) 6.3

Same name and namespace in other branches
  1. 5 content_copy.module \content_copy_types()
  2. 6 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.

2 calls to content_copy_types()
content_copy_export_form in modules/content_copy/content_copy.module
A form to export field definitions.
content_copy_import_form in modules/content_copy/content_copy.module
A form to import formatted text created with export.

File

modules/content_copy/content_copy.module, line 536
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] = check_plain($val['name']) . ' (' . $type_name . ')';
  }
  return $types;
}