On my Drupal 6 installation, I keep trying to export my flashnode file (renamed "AV") using Administer | Content Management | Content types, and then reimport this code for the purpose of creating a second flashnode content type.
I've made the following changes in the code.
It changed from here
- 'name' => 'AV'
- 'type' => 'flashnode'
to here
- 'name' => 'Student AV'
- 'type' => 'student_av'
When I try to reimport my flashnode content type back into Drupal, I keep receiving the following error:
- The content type Student AV has been added.
- An error has occurred adding the content type student_flashnode.
The new content type doesn't get created.
Is there any reason why this should be happening or if there's a work around?
Thanks,
Stan
P.S. Here's the code I keep trying to important but to no avail.
$content['type'] = array (
'name' => 'Student AV',
'type' => 'student_av',
'description' => 'The Student AV (audio / video) content type allows stiudents to upload and display .mp3 audio and .flv video files.',
'title_label' => 'Title',
'body_label' => 'Body',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => false,
'sticky' => false,
'revision' => false,
),
'upload' => '1',
'flag_bookmarks_default' => 0,
'scheduler' => 0,
'scheduler_touch' => 0,
'old_type' => 'flashnode',
'orig_type' => 'flashnode',
'module' => 'flashnode',
'custom' => '0',
'modified' => '1',
'locked' => '1',
'reset' => 'Reset to defaults',
'image_attach' => '1',
'image_attach_maximum' => '0',
'image_attach_size_teaser' => 'thumbnail',
'image_attach_size_body' => '_original',
'og_content_type_usage' => 'omitted',
'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',
'comment_talk' => 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,
'ant' => '0',
'ant_pattern' => '',
'ant_php' => 0,
'better_formats_allowed' =>
array (
1 => false,
2 => false,
3 => false,
4 => false,
5 => false,
),
'better_formats_defaults' =>
array (
'node-1' =>
array (
'format' => '0',
'weight' => '0',
),
'node-2' =>
array (
'format' => '0',
'weight' => '0',
),
'node-5' =>
array (
'format' => '0',
'weight' => '0',
),
'node-7' =>
array (
'format' => '0',
'weight' => '0',
),
'node-9' =>
array (
'format' => '0',
'weight' => '0',
),
'node-10' =>
array (
'format' => '0',
'weight' => '0',
),
'node-13' =>
array (
'format' => '0',
'weight' => '25',
),
'node-14' =>
array (
'format' => '0',
'weight' => '25',
),
'comment-1' =>
array (
'format' => '0',
'weight' => '0',
),
'comment-2' =>
array (
'format' => '0',
'weight' => '0',
),
'comment-5' =>
array (
'format' => '0',
'weight' => '0',
),
'comment-7' =>
array (
'format' => '0',
'weight' => '0',
),
'comment-9' =>
array (
'format' => '0',
'weight' => '0',
),
'comment-10' =>
array (
'format' => '0',
'weight' => '0',
),
'comment-13' =>
array (
'format' => '0',
'weight' => '25',
),
'comment-14' =>
array (
'format' => '0',
'weight' => '25',
),
),
);
$content['extra'] = array (
'title' => '-1',
'body_field' => '0',
'menu' => '4',
'taxonomy' => '3',
'book' => '6',
'attachments' => '2',
'og_nodeapi' => '5',
);