Create a content type with locations enabled and export it. You'll find that location is not included in the exported code:
$content[type] = array (
'name' => 'Event',
'type' => 'event',
'description' => 'An event with a start time and location which will appear in the calendar',
'title_label' => 'Page title',
'body_label' => 'Body',
'min_word_count' => '0',
'help' => '',
'node_options' =>
array (
'status' => true,
'promote' => false,
'sticky' => false,
'revision' => false,
),
'comment' => '0',
'forward_display' => 1,
'image_attach' => '0',
'image_attach_size_teaser' => 'thumbnail',
'image_attach_weight_teaser' => '0',
'image_attach_size_body' => 'thumbnail',
'image_attach_weight_body' => '0',
'upload' => '1',
'old_type' => 'event',
'orig_type' => 'event',
'module' => 'node',
'custom' => '1',
'modified' => '1',
'locked' => '0',
'print_display' => 1,
'print_display_comment' => 0,
);
$content[fields] = array (
0 =>
array (
'widget_type' => 'date_select',
'label' => 'Start Time',
'weight' => 0,
'default_value' => 'blank',
'default_value_custom' => '',
'default_value2' => 'blank',
'default_value_custom2' => '',
'input_format' => 'site-wide',
'input_format_custom' => '',
'year_range' => '-3:+3',
'increment' => '5',
'text_parts' =>
array (
),
'description' => '',
'group' => false,
'required' => 0,
'multiple' => 0,
'todate' => '',
'granularity' =>
array (
'Y' => 'Y',
'M' => 'M',
'D' => 'D',
'H' => 'H',
'N' => 'N',
'S' => 0,
),
'output_format_date' => 'M j Y - g:ia',
'output_format_custom' => '',
'output_format_date_long' => 'l, F j, Y - g:ia',
'output_format_custom_long' => '',
'output_format_date_medium' => 'F j, Y - g:ia',
'output_format_custom_medium' => '',
'output_format_date_short' => 'M j Y - g:ia',
'output_format_custom_short' => '',
'tz_handling' => 'none',
'timezone_db' => 'UTC',
'field_timezone' => 'US/Eastern',
'field_name' => 'field_start_time',
'field_type' => 'date',
'module' => 'date',
),
);
Comments
Comment #1
yesct commentedI wonder if cck location fields are used if they are included?
Comment #2
mlncn commentedProblem exists in 6 also, and really messes up CCK content type import / export– I think combined with or perhaps caused by the 3 location fields error when the node type isn't even trying to use location at all).
So this would be fixed if we tried the Release Candidates?
ben, agaric
Comment #3
nickl commentedSettings do get exported.
Importing works too.
Comment #5
seanrThis bug still exists. #3 only applies to location CCK fields. The export of location settings entered in the edit content type form are still lost. If we're still going to support attaching locations to node types using that method, we need to also handle the export correctly. Otherwise, it'd be better to drop that method and include an update that converts them to CCK fields or something (if that is indeed the desired method).
Comment #6
davisjan commentedI agree with seanr, the bug still exists: "The export of location settings entered in the edit content type form are still lost."
This makes it impossible to import any exported content types, not just those with CCK location fields. Attempting to import results in the error message, "You can't show more empty location forms than the maximum number of locations allowed for this content type."
Comment #7
pcarman commentedSubscribing...
Experiencing the same issue.
Comment #8
ankur commentedI think this might've been fixed in a separate ticket. If I'm wrong, please re-open this ticket.
Comment #9
nickl commentedI guess it is up to me to mark it fixed again =) haven't tested at all just saw this pop up on my inbox and ankur suggested to mark it fixed, I agree.
Feel free to reactivate and motivate for it to be corrected then.