530 lines
14 KiB
PHP
530 lines
14 KiB
PHP
<?php
|
|
/**
|
|
* @file
|
|
* materio_subscriptions.features.field.inc
|
|
*/
|
|
|
|
/**
|
|
* Implements hook_field_default_fields().
|
|
*/
|
|
function materio_subscriptions_field_default_fields() {
|
|
$fields = array();
|
|
|
|
// Exported field: 'node-product-body'.
|
|
$fields['node-product-body'] = array(
|
|
'field_config' => array(
|
|
'active' => '1',
|
|
'cardinality' => '1',
|
|
'deleted' => '0',
|
|
'entity_types' => array(
|
|
0 => 'node',
|
|
),
|
|
'field_name' => 'body',
|
|
'field_permissions' => array(
|
|
'type' => '0',
|
|
),
|
|
'foreign keys' => array(
|
|
'format' => array(
|
|
'columns' => array(
|
|
'format' => 'format',
|
|
),
|
|
'table' => 'filter_format',
|
|
),
|
|
),
|
|
'indexes' => array(
|
|
'format' => array(
|
|
0 => 'format',
|
|
),
|
|
),
|
|
'locked' => '0',
|
|
'module' => 'text',
|
|
'settings' => array(
|
|
'entity_translation_sync' => FALSE,
|
|
'profile2_private' => FALSE,
|
|
),
|
|
'translatable' => '1',
|
|
'type' => 'text_with_summary',
|
|
),
|
|
'field_instance' => array(
|
|
'bundle' => 'product',
|
|
'default_value' => NULL,
|
|
'deleted' => '0',
|
|
'description' => '',
|
|
'display' => array(
|
|
'bookmark' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardbig' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardfull' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardmedium' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardsmall' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'default' => array(
|
|
'label' => 'hidden',
|
|
'module' => 'text',
|
|
'settings' => array(),
|
|
'type' => 'text_default',
|
|
'weight' => 0,
|
|
),
|
|
'print' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'hidden',
|
|
'module' => 'text',
|
|
'settings' => array(
|
|
'trim_length' => 600,
|
|
),
|
|
'type' => 'text_summary_or_trimmed',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'body',
|
|
'label' => 'Description',
|
|
'required' => FALSE,
|
|
'settings' => array(
|
|
'display_summary' => TRUE,
|
|
'entity_translation_sync' => FALSE,
|
|
'text_processing' => 1,
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'module' => 'text',
|
|
'settings' => array(
|
|
'rows' => 20,
|
|
'summary_rows' => 5,
|
|
),
|
|
'type' => 'text_textarea_with_summary',
|
|
'weight' => 31,
|
|
),
|
|
),
|
|
);
|
|
|
|
// Exported field: 'node-product-taxonomy_catalog'.
|
|
$fields['node-product-taxonomy_catalog'] = array(
|
|
'field_config' => array(
|
|
'active' => '1',
|
|
'cardinality' => '-1',
|
|
'deleted' => '0',
|
|
'entity_types' => array(),
|
|
'field_name' => 'taxonomy_catalog',
|
|
'foreign keys' => array(
|
|
'tid' => array(
|
|
'columns' => array(
|
|
'tid' => 'tid',
|
|
),
|
|
'table' => 'taxonomy_term_data',
|
|
),
|
|
),
|
|
'indexes' => array(
|
|
'tid' => array(
|
|
0 => 'tid',
|
|
),
|
|
),
|
|
'locked' => '0',
|
|
'module' => 'taxonomy',
|
|
'settings' => array(
|
|
'allowed_values' => array(
|
|
0 => array(
|
|
'vocabulary' => 'catalog',
|
|
'parent' => 0,
|
|
),
|
|
),
|
|
'entity_translation_sync' => FALSE,
|
|
'options_list_callback' => 'i18n_taxonomy_allowed_values',
|
|
),
|
|
'translatable' => '0',
|
|
'type' => 'taxonomy_term_reference',
|
|
),
|
|
'field_instance' => array(
|
|
'bundle' => 'product',
|
|
'default_value' => NULL,
|
|
'deleted' => '0',
|
|
'description' => '',
|
|
'display' => array(
|
|
'bookmark' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardbig' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardfull' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardmedium' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardsmall' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'i18n_taxonomy',
|
|
'settings' => array(),
|
|
'type' => 'i18n_taxonomy_term_reference_link',
|
|
'weight' => 2,
|
|
),
|
|
'print' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'taxonomy_catalog',
|
|
'label' => 'Catalog',
|
|
'required' => FALSE,
|
|
'settings' => array(
|
|
'entity_translation_sync' => FALSE,
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'module' => 'options',
|
|
'settings' => array(),
|
|
'type' => 'options_select',
|
|
'weight' => 33,
|
|
),
|
|
),
|
|
);
|
|
|
|
// Exported field: 'node-product-uc_product_image'.
|
|
$fields['node-product-uc_product_image'] = array(
|
|
'field_config' => array(
|
|
'active' => '1',
|
|
'cardinality' => '-1',
|
|
'deleted' => '0',
|
|
'entity_types' => array(),
|
|
'field_name' => 'uc_product_image',
|
|
'foreign keys' => array(
|
|
'fid' => array(
|
|
'columns' => array(
|
|
'fid' => 'fid',
|
|
),
|
|
'table' => 'file_managed',
|
|
),
|
|
),
|
|
'indexes' => array(
|
|
'fid' => array(
|
|
0 => 'fid',
|
|
),
|
|
),
|
|
'locked' => '0',
|
|
'module' => 'image',
|
|
'settings' => array(
|
|
'default_image' => 0,
|
|
'entity_translation_sync' => array(
|
|
0 => 'fid',
|
|
),
|
|
'uri_scheme' => 'public',
|
|
),
|
|
'translatable' => '0',
|
|
'type' => 'image',
|
|
),
|
|
'field_instance' => array(
|
|
'bundle' => 'product',
|
|
'deleted' => '0',
|
|
'description' => '',
|
|
'display' => array(
|
|
'bookmark' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardbig' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardfull' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardmedium' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'cardsmall' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'image',
|
|
'settings' => array(
|
|
'image_link' => '',
|
|
'image_style' => '',
|
|
),
|
|
'type' => 'image',
|
|
'weight' => 1,
|
|
),
|
|
'full' => array(
|
|
'label' => 'hidden',
|
|
'module' => 'uc_product',
|
|
'settings' => array(),
|
|
'type' => 'uc_product_image',
|
|
'weight' => 0,
|
|
),
|
|
'print' => array(
|
|
'label' => 'above',
|
|
'settings' => array(),
|
|
'type' => 'hidden',
|
|
'weight' => 0,
|
|
),
|
|
'teaser' => array(
|
|
'label' => 'hidden',
|
|
'module' => 'uc_product',
|
|
'settings' => array(),
|
|
'type' => 'uc_product_image',
|
|
'weight' => 1,
|
|
),
|
|
),
|
|
'entity_type' => 'node',
|
|
'field_name' => 'uc_product_image',
|
|
'label' => 'Image',
|
|
'required' => FALSE,
|
|
'settings' => array(
|
|
'alt_field' => 0,
|
|
'default_image' => 0,
|
|
'entity_translation_sync' => FALSE,
|
|
'file_directory' => '',
|
|
'file_extensions' => 'png gif jpg jpeg',
|
|
'max_filesize' => '',
|
|
'max_resolution' => '',
|
|
'min_resolution' => '',
|
|
'title_field' => 0,
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'weight' => -2,
|
|
'widget' => array(
|
|
'module' => 'image',
|
|
'settings' => array(
|
|
'preview_image_style' => 'thumbnail',
|
|
'progress_indicator' => 'throbber',
|
|
),
|
|
'type' => 'image_image',
|
|
'weight' => 32,
|
|
),
|
|
),
|
|
);
|
|
|
|
// Exported field: 'taxonomy_term-catalog-synonyms_synonym'.
|
|
$fields['taxonomy_term-catalog-synonyms_synonym'] = array(
|
|
'field_config' => array(
|
|
'active' => '1',
|
|
'cardinality' => '-1',
|
|
'deleted' => '0',
|
|
'entity_types' => array(),
|
|
'field_name' => 'synonyms_synonym',
|
|
'field_permissions' => array(
|
|
'type' => '0',
|
|
),
|
|
'foreign keys' => array(
|
|
'format' => array(
|
|
'columns' => array(
|
|
'format' => 'format',
|
|
),
|
|
'table' => 'filter_format',
|
|
),
|
|
),
|
|
'indexes' => array(
|
|
'format' => array(
|
|
0 => 'format',
|
|
),
|
|
),
|
|
'locked' => '0',
|
|
'module' => 'text',
|
|
'settings' => array(
|
|
'entity_translation_sync' => FALSE,
|
|
'max_length' => 255,
|
|
'profile2_private' => FALSE,
|
|
),
|
|
'translatable' => '1',
|
|
'type' => 'text',
|
|
),
|
|
'field_instance' => array(
|
|
'bundle' => 'catalog',
|
|
'default_value' => NULL,
|
|
'deleted' => '0',
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'text',
|
|
'settings' => array(),
|
|
'type' => 'text_default',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'taxonomy_term',
|
|
'field_name' => 'synonyms_synonym',
|
|
'label' => 'Synonyms for this term',
|
|
'required' => FALSE,
|
|
'settings' => array(
|
|
'entity_translation_sync' => FALSE,
|
|
'text_processing' => 0,
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'module' => 'text',
|
|
'settings' => array(
|
|
'size' => 60,
|
|
),
|
|
'type' => 'text_textfield',
|
|
'weight' => 31,
|
|
),
|
|
),
|
|
);
|
|
|
|
// Exported field: 'taxonomy_term-catalog-uc_catalog_image'.
|
|
$fields['taxonomy_term-catalog-uc_catalog_image'] = array(
|
|
'field_config' => array(
|
|
'active' => '1',
|
|
'cardinality' => '1',
|
|
'deleted' => '0',
|
|
'entity_types' => array(),
|
|
'field_name' => 'uc_catalog_image',
|
|
'foreign keys' => array(
|
|
'fid' => array(
|
|
'columns' => array(
|
|
'fid' => 'fid',
|
|
),
|
|
'table' => 'file_managed',
|
|
),
|
|
),
|
|
'indexes' => array(
|
|
'fid' => array(
|
|
0 => 'fid',
|
|
),
|
|
),
|
|
'locked' => '0',
|
|
'module' => 'image',
|
|
'settings' => array(
|
|
'default_image' => 0,
|
|
'entity_translation_sync' => array(
|
|
0 => 'fid',
|
|
),
|
|
'uri_scheme' => 'public',
|
|
),
|
|
'translatable' => '0',
|
|
'type' => 'image',
|
|
),
|
|
'field_instance' => array(
|
|
'bundle' => 'catalog',
|
|
'deleted' => '0',
|
|
'description' => '',
|
|
'display' => array(
|
|
'default' => array(
|
|
'label' => 'above',
|
|
'module' => 'image',
|
|
'settings' => array(
|
|
'image_link' => '',
|
|
'image_style' => '',
|
|
),
|
|
'type' => 'image',
|
|
'weight' => 1,
|
|
),
|
|
'full' => array(
|
|
'label' => 'hidden',
|
|
'module' => 'image',
|
|
'settings' => array(
|
|
'image_link' => 'content',
|
|
'image_style' => 'uc_category',
|
|
),
|
|
'type' => 'image',
|
|
'weight' => 0,
|
|
),
|
|
),
|
|
'entity_type' => 'taxonomy_term',
|
|
'field_name' => 'uc_catalog_image',
|
|
'label' => 'Image',
|
|
'required' => FALSE,
|
|
'settings' => array(
|
|
'alt_field' => 0,
|
|
'default_image' => 0,
|
|
'entity_translation_sync' => FALSE,
|
|
'file_directory' => '',
|
|
'file_extensions' => 'png gif jpg jpeg',
|
|
'max_filesize' => '',
|
|
'max_resolution' => '',
|
|
'min_resolution' => '',
|
|
'title_field' => 0,
|
|
'user_register_form' => FALSE,
|
|
),
|
|
'widget' => array(
|
|
'module' => 'image',
|
|
'settings' => array(
|
|
'preview_image_style' => 'thumbnail',
|
|
'progress_indicator' => 'throbber',
|
|
),
|
|
'type' => 'image_image',
|
|
'weight' => 32,
|
|
),
|
|
),
|
|
);
|
|
|
|
// Translatables
|
|
// Included for use with string extractors like potx.
|
|
t('Catalog');
|
|
t('Description');
|
|
t('Image');
|
|
t('Synonyms for this term');
|
|
|
|
return $fields;
|
|
}
|