Commit 74332b0f authored by Matt Glaman's avatar Matt Glaman

Merge pull request #135 from mglaman/2461727-features-overridden-install-no-demo

Issue #2461727: Features overriden in fresh install
parents 7c5a2bda 00a4f012
......@@ -19,14 +19,6 @@ function commerce_kickstart_lite_product_field_default_field_bases() {
0 => 'node',
),
'field_name' => 'body',
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
......@@ -69,14 +61,6 @@ function commerce_kickstart_lite_product_field_default_field_bases() {
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_images',
'foreign keys' => array(
'fid' => array(
'columns' => array(
'fid' => 'fid',
),
'table' => 'file_managed',
),
),
'indexes' => array(
'fid' => array(
0 => 'fid',
......@@ -99,14 +83,6 @@ function commerce_kickstart_lite_product_field_default_field_bases() {
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_product',
'foreign keys' => array(
'product_id' => array(
'columns' => array(
'product_id' => 'product_id',
),
'table' => 'commerce_product',
),
),
'indexes' => array(
'product_id' => array(
0 => 'product_id',
......@@ -128,14 +104,6 @@ function commerce_kickstart_lite_product_field_default_field_bases() {
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'field_product_category',
'foreign keys' => array(
'tid' => array(
'columns' => array(
'tid' => 'tid',
),
'table' => 'taxonomy_term_data',
),
),
'indexes' => array(
'tid' => array(
0 => 'tid',
......@@ -162,14 +130,6 @@ function commerce_kickstart_lite_product_field_default_field_bases() {
'deleted' => 0,
'entity_types' => array(),
'field_name' => 'title_field',
'foreign keys' => array(
'format' => array(
'columns' => array(
'format' => 'format',
),
'table' => 'filter_format',
),
),
'indexes' => array(
'format' => array(
0 => 'format',
......
......@@ -21,16 +21,8 @@ function commerce_kickstart_lite_product_image_default_styles() {
// Exported image style: product_full.
$styles['product_full'] = array(
'name' => 'product_full',
'effects' => array(
1 => array(
'label' => 'Scale and crop',
'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
'effect callback' => 'image_scale_and_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 400,
......@@ -44,16 +36,8 @@ function commerce_kickstart_lite_product_image_default_styles() {
// Exported image style: product_medium.
$styles['product_medium'] = array(
'name' => 'product_medium',
'effects' => array(
1 => array(
'label' => 'Scale and crop',
'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
'effect callback' => 'image_scale_and_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 230,
......@@ -67,16 +51,8 @@ function commerce_kickstart_lite_product_image_default_styles() {
// Exported image style: product_thumbnail.
$styles['product_thumbnail'] = array(
'name' => 'product_thumbnail',
'effects' => array(
1 => array(
'label' => 'Scale and crop',
'help' => 'Scale and crop will maintain the aspect-ratio of the original image, then crop the larger dimension. This is most useful for creating perfectly square thumbnails without stretching the image.',
'effect callback' => 'image_scale_and_crop_effect',
'dimensions callback' => 'image_resize_dimensions',
'form callback' => 'image_resize_form',
'summary theme' => 'image_resize_summary',
'module' => 'image',
'name' => 'image_scale_and_crop',
'data' => array(
'width' => 110,
......
......@@ -52,4 +52,5 @@ features[variable][] = node_submitted_product_display
features[variable][] = pathauto_node_pattern
features[variable][] = pathauto_punctuation_hyphen
features[variable][] = pathauto_taxonomy_term_pattern
features_exclude[taxonomy][product_category] = product_category
files[] = commerce_kickstart_lite_product.migrate.inc
......@@ -54,18 +54,32 @@ function commerce_kickstart_lite_product_enable() {
'image_style' => 'product_medium',
),
'type' => 'image_delta',
'weight' => '3',
'weight' => '1',
);
$settings_add_to_cart_confirm = array(
'label' => 'hidden',
'module' => 'image_delta_formatter',
'settings' => array(
'deltas' => 0,
'deltas_reversed' => 0,
'image_link' => '',
'image_style' => 'product_thumbnail',
),
'type' => 'image_delta',
'weight' => 0,
);
$instance = array(
'entity_type' => 'commerce_product',
'bundle' => 'product',
'field_name' => 'field_images',
'label' => 'Images',
'display' => array(
'add_to_cart_confirmation_view' => $settings_add_to_cart_confirm,
'default' => $settings,
'node_product_list' => $settings_node_product_list,
),
);
),
);
$field_instance = field_read_instance('commerce_product', 'field_images', 'product');
$field_settings = $field_instance['display']['default'];
variable_set('commerce_kickstart_product_zoom_settings', $field_settings);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment