1. Creating brand new content type Test (default settings only).
2. Exported:
$content[type] = array (
'name' => 'Test',
'type' => 'test',
'description' => '',
'title_label' => 'Tytuł',
'body_label' => 'Treść',
'min_word_count' => '0',
'help' => '',
'input_formats' =>
array (
1 => true,
0 => 1,
2 => false,
3 => false,
4 => false,
),
'node_options' =>
array (
'status' => true,
'promote' => true,
'sticky' => false,
'revision' => false,
'moderate' => false,
),
'autosave' => 0,
'language_content_type' => '0',
'upload' => '1',
'show_preview_changes' => 1,
'forward_display' => 1,
'nodewords' => 1,
'notifications_node_ui' =>
array (
'links' => true,
'form' => false,
'comment' => false,
'block' => false,
),
'i18n_node' => '1',
'old_type' => 'test',
'orig_type' => '',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'content_profile_use' => 0,
'comment' => '2',
'comment_default_mode' => '4',
'comment_default_order' => '1',
'comment_default_per_page' => '50',
'comment_controls' => '3',
'comment_anonymous' => '0',
'comment_subject_field' => '1',
'comment_preview' => '1',
'comment_form_location' => '0',
'abuse_content_node_type_test' => 0,
'fivestar' => 0,
'fivestar_stars' => 5,
'fivestar_labels_enable' => 1,
'fivestar_label_0' => 'Cancel rating',
'fivestar_label_1' => 'Poor',
'fivestar_label_2' => 'Okay',
'fivestar_label_3' => 'Good',
'fivestar_label_4' => 'Great',
'fivestar_label_5' => 'Awesome',
'fivestar_label_6' => 'Give it @star/@count',
'fivestar_label_7' => 'Give it @star/@count',
'fivestar_label_8' => 'Give it @star/@count',
'fivestar_label_9' => 'Give it @star/@count',
'fivestar_label_10' => 'Give it @star/@count',
'fivestar_style' => 'average',
'fivestar_text' => 'dual',
'fivestar_title' => 1,
'fivestar_feedback' => 1,
'fivestar_unvote' => 0,
'fivestar_position_teaser' => 'hidden',
'fivestar_position' => 'below',
'fivestar_comment' => 0,
'image_attach' => '0',
'image_attach_size_teaser' => 'thumbnail',
'image_attach_weight_teaser' => '0',
'image_attach_size_body' => 'thumbnail',
'image_attach_weight_body' => '0',
'links_related_types' => '0',
'print_display' => 1,
'print_display_comment' => 0,
'print_display_urllist' => 1,
'print_mail_display' => 1,
'print_mail_display_comment' => 0,
'print_mail_display_urllist' => 1,
'print_pdf_display' => 1,
'print_pdf_display_comment' => 0,
'print_pdf_display_urllist' => 1,
'formblock_expose' => '0',
'is_game' => '0',
'xmlsitemap_node_type_priority' => '0.5',
'xmlsitemap_old_priority' => '0.5',
'feedapi' =>
array (
'enabled' => 0,
'feedapi' =>
array (
'itemfilter' =>
array (
'feedapi_keyword_filter' =>
array (
'keywords' => '',
'enabled' => 0,
'weight' => '-15',
),
),
),
'refresh_on_create' => 0,
'update_existing' => 1,
'skip' => 0,
'items_delete' => '0',
'parsers' =>
array (
'parser_simplepie' =>
array (
'enabled' => 0,
'weight' => '0',
),
'parser_common_syndication' =>
array (
'enabled' => 0,
'weight' => '0',
),
'parser_comments' =>
array (
'enabled' => 0,
'weight' => '0',
),
),
'processors' =>
array (
'feedapi_taxonomy_compare' =>
array (
'enabled' => 0,
'weight' => '0',
),
'feedapi_node' =>
array (
'enabled' => 0,
'weight' => '0',
'content_type' => 'poll',
'node_date' => 'feed',
'promote' => '3',
'x_dedupe' => '0',
),
'feedapi_inherit' =>
array (
'enabled' => 0,
'weight' => '0',
'inherit_taxonomy' => 1,
),
),
),
'ant' => '0',
'ant_pattern' => '',
'ant_php' => 0,
);
3. Importing and there is an error:
Illegal choice 0 in Allowed input formats element.
Probably because of:
0 => 1,
in 'input_formats' =>
but why?
Comments
Comment #1
JuliaKM commentedI had the same problem. When I deleted the line " 0 => 1," the import worked correctly. Using CCK 6.x-2.2.
Comment #2
summit commentedThank you, I had a problem in same area, with mine it said:
I had to correct this to:
Comment #3
jvj commentedI'm experiencing this problem and this seems to be duplicate of http://drupal.org/node/508362 (where I reported my problem)
Comment #4
itserich commentedSame problem, don't understand what it means.
Deleting the line "0 => 1," worked for me, thanks.
Hope it imported correctly... :-)