function migrate_extras_date_content_default_fields in Migrate Extras 6.2
Implementation of hook_content_default_fields().
File
- migrate_extras_examples/
migrate_extras_date/ migrate_extras_date.features.content.inc, line 6
Code
function migrate_extras_date_content_default_fields() {
$fields = array();
// Exported field: field_date
$fields['migrate_example_date-field_date'] = array(
'field_name' => 'field_date',
'type_name' => 'migrate_example_date',
'display_settings' => array(
'label' => array(
'format' => 'above',
'exclude' => 0,
),
'teaser' => array(
'format' => 'default',
'exclude' => 0,
),
'full' => array(
'format' => 'default',
'exclude' => 0,
),
'4' => array(
'format' => 'default',
'exclude' => 0,
),
),
'widget_active' => '1',
'type' => 'date',
'required' => '0',
'multiple' => '1',
'module' => 'date',
'active' => '1',
'granularity' => array(
'year' => 'year',
'month' => 'month',
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
),
'timezone_db' => 'UTC',
'tz_handling' => 'site',
'todate' => '',
'repeat' => 0,
'repeat_collapsed' => '',
'default_format' => 'medium',
'widget' => array(
'default_value' => 'blank',
'default_value_code' => '',
'default_value2' => 'blank',
'default_value_code2' => '',
'input_format' => 'm/d/Y - H:i:s',
'input_format_custom' => '',
'increment' => 1,
'text_parts' => array(),
'year_range' => '-3:+3',
'label_position' => 'above',
'label' => 'Date',
'weight' => '31',
'description' => '',
'type' => 'date_text',
'module' => 'date',
),
);
// Exported field: field_date_range
$fields['migrate_example_date-field_date_range'] = array(
'field_name' => 'field_date_range',
'type_name' => 'migrate_example_date',
'display_settings' => array(
'label' => array(
'format' => 'above',
'exclude' => 0,
),
'teaser' => array(
'format' => 'default',
'exclude' => 0,
),
'full' => array(
'format' => 'default',
'exclude' => 0,
),
'4' => array(
'format' => 'default',
'exclude' => 0,
),
),
'widget_active' => '1',
'type' => 'date',
'required' => '0',
'multiple' => '1',
'module' => 'date',
'active' => '1',
'granularity' => array(
'year' => 'year',
'month' => 'month',
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
),
'timezone_db' => 'UTC',
'tz_handling' => 'site',
'todate' => 'optional',
'repeat' => 0,
'repeat_collapsed' => '',
'default_format' => 'medium',
'widget' => array(
'default_value' => 'blank',
'default_value_code' => '',
'default_value2' => 'same',
'default_value_code2' => '',
'input_format' => 'm/d/Y - H:i:s',
'input_format_custom' => '',
'increment' => 1,
'text_parts' => array(),
'year_range' => '-3:+3',
'label_position' => 'above',
'label' => 'Date range',
'weight' => '32',
'description' => '',
'type' => 'date_text',
'module' => 'date',
),
);
// Exported field: field_date_repeat
$fields['migrate_example_date-field_date_repeat'] = array(
'field_name' => 'field_date_repeat',
'type_name' => 'migrate_example_date',
'display_settings' => array(
'label' => array(
'format' => 'above',
'exclude' => 0,
),
'teaser' => array(
'format' => 'default',
'exclude' => 0,
),
'full' => array(
'format' => 'default',
'exclude' => 0,
),
'4' => array(
'format' => 'default',
'exclude' => 0,
),
),
'widget_active' => '1',
'type' => 'date',
'required' => '0',
'multiple' => '1',
'module' => 'date',
'active' => '1',
'granularity' => array(
'year' => 'year',
'month' => 'month',
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
),
'timezone_db' => 'UTC',
'tz_handling' => 'site',
'todate' => '',
'repeat' => 1,
'repeat_collapsed' => '0',
'default_format' => 'medium',
'widget' => array(
'default_value' => 'blank',
'default_value_code' => '',
'default_value2' => 'same',
'default_value_code2' => '',
'input_format' => 'm/d/Y - H:i:s',
'input_format_custom' => '',
'increment' => 1,
'text_parts' => array(),
'year_range' => '-3:+3',
'label_position' => 'above',
'label' => 'Date with repeat',
'weight' => '37',
'description' => '',
'type' => 'date_text_repeat',
'module' => 'date',
),
);
// Exported field: field_datestamp
$fields['migrate_example_date-field_datestamp'] = array(
'field_name' => 'field_datestamp',
'type_name' => 'migrate_example_date',
'display_settings' => array(
'label' => array(
'format' => 'above',
'exclude' => 0,
),
'teaser' => array(
'format' => 'default',
'exclude' => 0,
),
'full' => array(
'format' => 'default',
'exclude' => 0,
),
'4' => array(
'format' => 'default',
'exclude' => 0,
),
),
'widget_active' => '1',
'type' => 'datestamp',
'required' => '0',
'multiple' => '0',
'module' => 'date',
'active' => '1',
'granularity' => array(
'year' => 'year',
'month' => 'month',
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
),
'timezone_db' => 'UTC',
'tz_handling' => 'site',
'todate' => '',
'repeat' => 0,
'repeat_collapsed' => '',
'default_format' => 'medium',
'widget' => array(
'default_value' => 'blank',
'default_value_code' => '',
'default_value2' => 'same',
'default_value_code2' => '',
'input_format' => 'm/d/Y - H:i:s',
'input_format_custom' => '',
'increment' => 1,
'text_parts' => array(),
'year_range' => '-3:+3',
'label_position' => 'above',
'label' => 'Datestamp',
'weight' => '33',
'description' => '',
'type' => 'date_text',
'module' => 'date',
),
);
// Exported field: field_datestamp_range
$fields['migrate_example_date-field_datestamp_range'] = array(
'field_name' => 'field_datestamp_range',
'type_name' => 'migrate_example_date',
'display_settings' => array(
'label' => array(
'format' => 'above',
'exclude' => 0,
),
'teaser' => array(
'format' => 'default',
'exclude' => 0,
),
'full' => array(
'format' => 'default',
'exclude' => 0,
),
'4' => array(
'format' => 'default',
'exclude' => 0,
),
),
'widget_active' => '1',
'type' => 'datestamp',
'required' => '0',
'multiple' => '0',
'module' => 'date',
'active' => '1',
'granularity' => array(
'year' => 'year',
'month' => 'month',
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
),
'timezone_db' => 'UTC',
'tz_handling' => 'site',
'todate' => 'optional',
'repeat' => 0,
'repeat_collapsed' => '',
'default_format' => 'medium',
'widget' => array(
'default_value' => 'blank',
'default_value_code' => '',
'default_value2' => 'same',
'default_value_code2' => '',
'input_format' => 'm/d/Y - H:i:s',
'input_format_custom' => '',
'increment' => 1,
'text_parts' => array(),
'year_range' => '-3:+3',
'label_position' => 'above',
'label' => 'Datestamp range',
'weight' => '34',
'description' => '',
'type' => 'date_text',
'module' => 'date',
),
);
// Exported field: field_datetime
$fields['migrate_example_date-field_datetime'] = array(
'field_name' => 'field_datetime',
'type_name' => 'migrate_example_date',
'display_settings' => array(
'label' => array(
'format' => 'above',
'exclude' => 0,
),
'teaser' => array(
'format' => 'default',
'exclude' => 0,
),
'full' => array(
'format' => 'default',
'exclude' => 0,
),
'4' => array(
'format' => 'default',
'exclude' => 0,
),
),
'widget_active' => '1',
'type' => 'datetime',
'required' => '0',
'multiple' => '0',
'module' => 'date',
'active' => '1',
'granularity' => array(
'year' => 'year',
'month' => 'month',
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
),
'timezone_db' => 'UTC',
'tz_handling' => 'site',
'todate' => '',
'repeat' => 0,
'repeat_collapsed' => '',
'default_format' => 'medium',
'widget' => array(
'default_value' => 'blank',
'default_value_code' => '',
'default_value2' => 'same',
'default_value_code2' => '',
'input_format' => 'm/d/Y - H:i:s',
'input_format_custom' => '',
'increment' => 1,
'text_parts' => array(),
'year_range' => '-3:+3',
'label_position' => 'above',
'label' => 'Datetime',
'weight' => '35',
'description' => '',
'type' => 'date_text',
'module' => 'date',
),
);
// Exported field: field_datetime_range
$fields['migrate_example_date-field_datetime_range'] = array(
'field_name' => 'field_datetime_range',
'type_name' => 'migrate_example_date',
'display_settings' => array(
'label' => array(
'format' => 'above',
'exclude' => 0,
),
'teaser' => array(
'format' => 'default',
'exclude' => 0,
),
'full' => array(
'format' => 'default',
'exclude' => 0,
),
'4' => array(
'format' => 'default',
'exclude' => 0,
),
),
'widget_active' => '1',
'type' => 'datetime',
'required' => '0',
'multiple' => '0',
'module' => 'date',
'active' => '1',
'granularity' => array(
'year' => 'year',
'month' => 'month',
'day' => 'day',
'hour' => 'hour',
'minute' => 'minute',
),
'timezone_db' => 'UTC',
'tz_handling' => 'site',
'todate' => 'optional',
'repeat' => 0,
'repeat_collapsed' => '',
'default_format' => 'medium',
'widget' => array(
'default_value' => 'blank',
'default_value_code' => '',
'default_value2' => 'same',
'default_value_code2' => '',
'input_format' => 'm/d/Y - H:i:s',
'input_format_custom' => '',
'increment' => 1,
'text_parts' => array(),
'year_range' => '-3:+3',
'label_position' => 'above',
'label' => 'Datetime range',
'weight' => '36',
'description' => '',
'type' => 'date_text',
'module' => 'date',
),
);
// Translatables
// Included for use with string extractors like potx.
t('Date');
t('Date range');
t('Date with repeat');
t('Datestamp');
t('Datestamp range');
t('Datetime');
t('Datetime range');
return $fields;
}