updated features materio_subscrition and materio_user_profile
This commit is contained in:
parent
39759425ce
commit
5cde537e0a
0
materio_subscriptions/materio_subscriptions.features.field.inc
Normal file → Executable file
0
materio_subscriptions/materio_subscriptions.features.field.inc
Normal file → Executable file
@ -0,0 +1,185 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_subscriptions.features.field_base.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_field_bases().
|
||||
*/
|
||||
function materio_subscriptions_field_default_field_bases() {
|
||||
$field_bases = array();
|
||||
|
||||
// Exported field_base: 'body'
|
||||
$field_bases['body'] = 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',
|
||||
);
|
||||
|
||||
// Exported field_base: 'synonyms_synonym'
|
||||
$field_bases['synonyms_synonym'] = 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',
|
||||
);
|
||||
|
||||
// Exported field_base: 'taxonomy_catalog'
|
||||
$field_bases['taxonomy_catalog'] = 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',
|
||||
);
|
||||
|
||||
// Exported field_base: 'uc_catalog_image'
|
||||
$field_bases['uc_catalog_image'] = 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',
|
||||
);
|
||||
|
||||
// Exported field_base: 'uc_product_image'
|
||||
$field_bases['uc_product_image'] = 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',
|
||||
);
|
||||
|
||||
return $field_bases;
|
||||
}
|
@ -0,0 +1,360 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_subscriptions.features.field_instance.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_field_instances().
|
||||
*/
|
||||
function materio_subscriptions_field_default_field_instances() {
|
||||
$field_instances = array();
|
||||
|
||||
// Exported field_instance: 'node-product-body'
|
||||
$field_instances['node-product-body'] = 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_instance: 'node-product-taxonomy_catalog'
|
||||
$field_instances['node-product-taxonomy_catalog'] = 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(
|
||||
'content_taxonomy_opt_groups' => FALSE,
|
||||
),
|
||||
'type' => 'options_select',
|
||||
'weight' => 33,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-product-uc_product_image'
|
||||
$field_instances['node-product-uc_product_image'] = 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_instance: 'taxonomy_term-catalog-synonyms_synonym'
|
||||
$field_instances['taxonomy_term-catalog-synonyms_synonym'] = 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_instance: 'taxonomy_term-catalog-uc_catalog_image'
|
||||
$field_instances['taxonomy_term-catalog-uc_catalog_image'] = 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 $field_instances;
|
||||
}
|
12
materio_subscriptions/materio_subscriptions.features.inc
Normal file → Executable file
12
materio_subscriptions/materio_subscriptions.features.inc
Normal file → Executable file
@ -7,13 +7,19 @@
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function materio_subscriptions_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
function materio_subscriptions_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
function materio_subscriptions_views_api($module = NULL, $api = NULL) {
|
||||
return array("api" => "3.0");
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_uc_product_default_classes().
|
||||
*/
|
||||
@ -24,7 +30,7 @@ function materio_subscriptions_uc_product_default_classes() {
|
||||
'base' => 'uc_product',
|
||||
'description' => t('Use <em>products</em> to represent items for sale on the website, including all the unique information that can be attributed to a specific model number.'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Nom'),
|
||||
'title_label' => t('Name'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
|
6
materio_subscriptions/materio_subscriptions.features.taxonomy.inc
Normal file → Executable file
6
materio_subscriptions/materio_subscriptions.features.taxonomy.inc
Normal file → Executable file
@ -13,11 +13,11 @@ function materio_subscriptions_taxonomy_default_vocabularies() {
|
||||
'name' => 'Catalog',
|
||||
'machine_name' => 'catalog',
|
||||
'description' => '',
|
||||
'hierarchy' => '1',
|
||||
'hierarchy' => 1,
|
||||
'module' => 'uc_catalog',
|
||||
'weight' => '0',
|
||||
'weight' => 0,
|
||||
'language' => 'und',
|
||||
'i18n_mode' => '0',
|
||||
'i18n_mode' => 0,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
241
materio_subscriptions/materio_subscriptions.features.user_permission.inc
Normal file → Executable file
241
materio_subscriptions/materio_subscriptions.features.user_permission.inc
Normal file → Executable file
@ -10,271 +10,362 @@
|
||||
function materio_subscriptions_user_default_permissions() {
|
||||
$permissions = array();
|
||||
|
||||
// Exported permission: administer attributes.
|
||||
// Exported permission: 'access default UC roles expiration list'.
|
||||
$permissions['access default UC roles expiration list'] = array(
|
||||
'name' => 'access default UC roles expiration list',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'materio_admin',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer attributes'.
|
||||
$permissions['administer attributes'] = array(
|
||||
'name' => 'administer attributes',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_attribute',
|
||||
);
|
||||
|
||||
// Exported permission: administer cart links.
|
||||
// Exported permission: 'administer cart links'.
|
||||
$permissions['administer cart links'] = array(
|
||||
'name' => 'administer cart links',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_cart_links',
|
||||
);
|
||||
|
||||
// Exported permission: administer credit cards.
|
||||
// Exported permission: 'administer credit cards'.
|
||||
$permissions['administer credit cards'] = array(
|
||||
'name' => 'administer credit cards',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_credit',
|
||||
);
|
||||
|
||||
// Exported permission: administer order workflow.
|
||||
// Exported permission: 'administer order workflow'.
|
||||
$permissions['administer order workflow'] = array(
|
||||
'name' => 'administer order workflow',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: administer own product features.
|
||||
// Exported permission: 'administer own product features'.
|
||||
$permissions['administer own product features'] = array(
|
||||
'name' => 'administer own product features',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: administer product attributes.
|
||||
// Exported permission: 'administer product attributes'.
|
||||
$permissions['administer product attributes'] = array(
|
||||
'name' => 'administer product attributes',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_attribute',
|
||||
);
|
||||
|
||||
// Exported permission: administer product classes.
|
||||
// Exported permission: 'administer product classes'.
|
||||
$permissions['administer product classes'] = array(
|
||||
'name' => 'administer product classes',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: administer product features.
|
||||
// Exported permission: 'administer product features'.
|
||||
$permissions['administer product features'] = array(
|
||||
'name' => 'administer product features',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: administer product options.
|
||||
// Exported permission: 'administer product options'.
|
||||
$permissions['administer product options'] = array(
|
||||
'name' => 'administer product options',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_attribute',
|
||||
);
|
||||
|
||||
// Exported permission: administer products.
|
||||
// Exported permission: 'administer products'.
|
||||
$permissions['administer products'] = array(
|
||||
'name' => 'administer products',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: administer store.
|
||||
// Exported permission: 'administer store'.
|
||||
$permissions['administer store'] = array(
|
||||
'name' => 'administer store',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_store',
|
||||
);
|
||||
|
||||
// Exported permission: create orders.
|
||||
// Exported permission: 'create orders'.
|
||||
$permissions['create orders'] = array(
|
||||
'name' => 'create orders',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: create product content.
|
||||
// Exported permission: 'create product content'.
|
||||
$permissions['create product content'] = array(
|
||||
'name' => 'create product content',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: delete any product content.
|
||||
// Exported permission: 'delete any product content'.
|
||||
$permissions['delete any product content'] = array(
|
||||
'name' => 'delete any product content',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: delete orders.
|
||||
// Exported permission: 'delete orders'.
|
||||
$permissions['delete orders'] = array(
|
||||
'name' => 'delete orders',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: delete own product content.
|
||||
// Exported permission: 'delete own product content'.
|
||||
$permissions['delete own product content'] = array(
|
||||
'name' => 'delete own product content',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: edit any product content.
|
||||
// Exported permission: 'delete payments'.
|
||||
$permissions['delete payments'] = array(
|
||||
'name' => 'delete payments',
|
||||
'roles' => array(),
|
||||
'module' => 'uc_payment',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit any product content'.
|
||||
$permissions['edit any product content'] = array(
|
||||
'name' => 'edit any product content',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: edit orders.
|
||||
// Exported permission: 'edit orders'.
|
||||
$permissions['edit orders'] = array(
|
||||
'name' => 'edit orders',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: edit own product content.
|
||||
// Exported permission: 'edit own product content'.
|
||||
$permissions['edit own product content'] = array(
|
||||
'name' => 'edit own product content',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: manage store coupons.
|
||||
$permissions['manage store coupons'] = array(
|
||||
'name' => 'manage store coupons',
|
||||
'roles' => array(
|
||||
0 => 'administrator',
|
||||
1 => 'root',
|
||||
),
|
||||
'module' => 'uc_coupon',
|
||||
// Exported permission: 'enter product revision log entry'.
|
||||
$permissions['enter product revision log entry'] = array(
|
||||
'name' => 'enter product revision log entry',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: process credit cards.
|
||||
// Exported permission: 'manual payments'.
|
||||
$permissions['manual payments'] = array(
|
||||
'name' => 'manual payments',
|
||||
'roles' => array(),
|
||||
'module' => 'uc_payment',
|
||||
);
|
||||
|
||||
// Exported permission: 'override product authored by option'.
|
||||
$permissions['override product authored by option'] = array(
|
||||
'name' => 'override product authored by option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override product authored on option'.
|
||||
$permissions['override product authored on option'] = array(
|
||||
'name' => 'override product authored on option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override product promote to front page option'.
|
||||
$permissions['override product promote to front page option'] = array(
|
||||
'name' => 'override product promote to front page option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override product published option'.
|
||||
$permissions['override product published option'] = array(
|
||||
'name' => 'override product published option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override product revision option'.
|
||||
$permissions['override product revision option'] = array(
|
||||
'name' => 'override product revision option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override product sticky option'.
|
||||
$permissions['override product sticky option'] = array(
|
||||
'name' => 'override product sticky option',
|
||||
'roles' => array(),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'process credit cards'.
|
||||
$permissions['process credit cards'] = array(
|
||||
'name' => 'process credit cards',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_credit',
|
||||
);
|
||||
|
||||
// Exported permission: unconditionally delete orders.
|
||||
// Exported permission: 'show product title'.
|
||||
$permissions['show product title'] = array(
|
||||
'name' => 'show product title',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'materio_page_title',
|
||||
);
|
||||
|
||||
// Exported permission: 'unconditionally delete orders'.
|
||||
$permissions['unconditionally delete orders'] = array(
|
||||
'name' => 'unconditionally delete orders',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: view all orders.
|
||||
// Exported permission: 'view all orders'.
|
||||
$permissions['view all orders'] = array(
|
||||
'name' => 'view all orders',
|
||||
'roles' => array(
|
||||
0 => 'administrator',
|
||||
1 => 'root',
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: view cart links report.
|
||||
// Exported permission: 'view cart links report'.
|
||||
$permissions['view cart links report'] = array(
|
||||
'name' => 'view cart links report',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_cart_links',
|
||||
);
|
||||
|
||||
// Exported permission: view cc details.
|
||||
// Exported permission: 'view cc details'.
|
||||
$permissions['view cc details'] = array(
|
||||
'name' => 'view cc details',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_credit',
|
||||
);
|
||||
|
||||
// Exported permission: view customers.
|
||||
// Exported permission: 'view customers'.
|
||||
$permissions['view customers'] = array(
|
||||
'name' => 'view customers',
|
||||
'roles' => array(
|
||||
0 => 'administrator',
|
||||
1 => 'root',
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: view own orders.
|
||||
// Exported permission: 'view own invoices'.
|
||||
$permissions['view own invoices'] = array(
|
||||
'name' => 'view own invoices',
|
||||
'roles' => array(
|
||||
'Adhérent' => 'Adhérent',
|
||||
'Contact opérationnel' => 'Contact opérationnel',
|
||||
'Premium' => 'Premium',
|
||||
'Student' => 'Student',
|
||||
'Unverified' => 'Unverified',
|
||||
'Utilisateur' => 'Utilisateur',
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: 'view own orders'.
|
||||
$permissions['view own orders'] = array(
|
||||
'name' => 'view own orders',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
'Adhérent' => 'Adhérent',
|
||||
'Contact opérationnel' => 'Contact opérationnel',
|
||||
'Premium' => 'Premium',
|
||||
'Student' => 'Student',
|
||||
'Unverified' => 'Unverified',
|
||||
'Utilisateur' => 'Utilisateur',
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: view reports.
|
||||
// Exported permission: 'view payments'.
|
||||
$permissions['view payments'] = array(
|
||||
'name' => 'view payments',
|
||||
'roles' => array(),
|
||||
'module' => 'uc_payment',
|
||||
);
|
||||
|
||||
// Exported permission: 'view reports'.
|
||||
$permissions['view reports'] = array(
|
||||
'name' => 'view reports',
|
||||
'roles' => array(
|
||||
0 => 'administrator',
|
||||
1 => 'root',
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_store',
|
||||
);
|
||||
|
||||
// Exported permission: view store coupons.
|
||||
$permissions['view store coupons'] = array(
|
||||
'name' => 'view store coupons',
|
||||
'roles' => array(
|
||||
0 => 'administrator',
|
||||
1 => 'root',
|
||||
),
|
||||
'module' => 'uc_coupon',
|
||||
);
|
||||
|
||||
return $permissions;
|
||||
}
|
||||
|
6
materio_subscriptions/materio_subscriptions.features.user_role.inc
Normal file → Executable file
6
materio_subscriptions/materio_subscriptions.features.user_role.inc
Normal file → Executable file
@ -13,19 +13,19 @@ function materio_subscriptions_user_default_roles() {
|
||||
// Exported role: Adhérent.
|
||||
$roles['Adhérent'] = array(
|
||||
'name' => 'Adhérent',
|
||||
'weight' => '3',
|
||||
'weight' => 5,
|
||||
);
|
||||
|
||||
// Exported role: Premium.
|
||||
$roles['Premium'] = array(
|
||||
'name' => 'Premium',
|
||||
'weight' => '4',
|
||||
'weight' => 6,
|
||||
);
|
||||
|
||||
// Exported role: Utilisateur.
|
||||
$roles['Utilisateur'] = array(
|
||||
'name' => 'Utilisateur',
|
||||
'weight' => '2',
|
||||
'weight' => 3,
|
||||
);
|
||||
|
||||
return $roles;
|
||||
|
50
materio_subscriptions/materio_subscriptions.info
Normal file → Executable file
50
materio_subscriptions/materio_subscriptions.info
Normal file → Executable file
@ -1,29 +1,43 @@
|
||||
name = Materio Subscriptions
|
||||
core = 7.x
|
||||
package = Materio
|
||||
php = 5.2.4
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = i18n_taxonomy
|
||||
dependencies[] = image
|
||||
dependencies[] = materio_admin
|
||||
dependencies[] = materio_page_title
|
||||
dependencies[] = node
|
||||
dependencies[] = options
|
||||
dependencies[] = override_node_options
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = taxonomy
|
||||
dependencies[] = text
|
||||
dependencies[] = uc_attribute
|
||||
dependencies[] = uc_cart
|
||||
dependencies[] = uc_cart_links
|
||||
dependencies[] = uc_coupon
|
||||
dependencies[] = uc_credit
|
||||
dependencies[] = uc_order
|
||||
dependencies[] = uc_payment
|
||||
dependencies[] = uc_product
|
||||
dependencies[] = uc_store
|
||||
dependencies[] = views
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:1
|
||||
features[field][] = node-product-body
|
||||
features[field][] = node-product-taxonomy_catalog
|
||||
features[field][] = node-product-uc_product_image
|
||||
features[field][] = taxonomy_term-catalog-synonyms_synonym
|
||||
features[field][] = taxonomy_term-catalog-uc_catalog_image
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:2
|
||||
features[field_base][] = body
|
||||
features[field_base][] = synonyms_synonym
|
||||
features[field_base][] = taxonomy_catalog
|
||||
features[field_base][] = uc_catalog_image
|
||||
features[field_base][] = uc_product_image
|
||||
features[field_instance][] = node-product-body
|
||||
features[field_instance][] = node-product-taxonomy_catalog
|
||||
features[field_instance][] = node-product-uc_product_image
|
||||
features[field_instance][] = taxonomy_term-catalog-synonyms_synonym
|
||||
features[field_instance][] = taxonomy_term-catalog-uc_catalog_image
|
||||
features[taxonomy][] = catalog
|
||||
features[uc_product_classes][] = product
|
||||
features[user_permission][] = access default UC roles expiration list
|
||||
features[user_permission][] = administer attributes
|
||||
features[user_permission][] = administer cart links
|
||||
features[user_permission][] = administer credit cards
|
||||
@ -40,22 +54,36 @@ features[user_permission][] = create product content
|
||||
features[user_permission][] = delete any product content
|
||||
features[user_permission][] = delete orders
|
||||
features[user_permission][] = delete own product content
|
||||
features[user_permission][] = delete payments
|
||||
features[user_permission][] = edit any product content
|
||||
features[user_permission][] = edit orders
|
||||
features[user_permission][] = edit own product content
|
||||
features[user_permission][] = manage store coupons
|
||||
features[user_permission][] = enter product revision log entry
|
||||
features[user_permission][] = manual payments
|
||||
features[user_permission][] = override product authored by option
|
||||
features[user_permission][] = override product authored on option
|
||||
features[user_permission][] = override product promote to front page option
|
||||
features[user_permission][] = override product published option
|
||||
features[user_permission][] = override product revision option
|
||||
features[user_permission][] = override product sticky option
|
||||
features[user_permission][] = process credit cards
|
||||
features[user_permission][] = show product title
|
||||
features[user_permission][] = unconditionally delete orders
|
||||
features[user_permission][] = view all orders
|
||||
features[user_permission][] = view cart links report
|
||||
features[user_permission][] = view cc details
|
||||
features[user_permission][] = view customers
|
||||
features[user_permission][] = view own invoices
|
||||
features[user_permission][] = view own orders
|
||||
features[user_permission][] = view payments
|
||||
features[user_permission][] = view reports
|
||||
features[user_permission][] = view store coupons
|
||||
features[user_role][] = Adhérent
|
||||
features[user_role][] = Premium
|
||||
features[user_role][] = Utilisateur
|
||||
features[variable][] = cart-settings__active_tab
|
||||
features[variable][] = date_format_uc_store
|
||||
features[variable][] = field_bundle_settings_node__product
|
||||
features[variable][] = pathauto_node_product_pattern
|
||||
features[variable][] = uc_add_item_redirect
|
||||
features[variable][] = uc_address_fields
|
||||
features[variable][] = uc_address_fields_required
|
||||
@ -80,8 +108,10 @@ features[variable][] = uc_cart_auth_unit
|
||||
features[variable][] = uc_cart_breadcrumb_text
|
||||
features[variable][] = uc_cart_breadcrumb_url
|
||||
features[variable][] = uc_cart_checkout_complete_page
|
||||
features[variable][] = uc_cart_default_same_address
|
||||
features[variable][] = uc_cart_delivery_not_shippable
|
||||
features[variable][] = uc_cart_email_validation
|
||||
features[variable][] = uc_cart_empty_button
|
||||
features[variable][] = uc_cart_mail_existing
|
||||
features[variable][] = uc_cart_new_account_details
|
||||
features[variable][] = uc_cart_new_account_name
|
||||
|
0
materio_subscriptions/materio_subscriptions.module
Normal file → Executable file
0
materio_subscriptions/materio_subscriptions.module
Normal file → Executable file
143
materio_subscriptions/materio_subscriptions.strongarm.inc
Normal file → Executable file
143
materio_subscriptions/materio_subscriptions.strongarm.inc
Normal file → Executable file
@ -10,6 +10,75 @@
|
||||
function materio_subscriptions_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'cart-settings__active_tab';
|
||||
$strongarm->value = 'edit-breadcrumb';
|
||||
$export['cart-settings__active_tab'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'date_format_uc_store';
|
||||
$strongarm->value = 'm/d/Y';
|
||||
$export['date_format_uc_store'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_node__product';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(
|
||||
'teaser' => array(
|
||||
'custom_settings' => TRUE,
|
||||
),
|
||||
),
|
||||
'extra_fields' => array(
|
||||
'form' => array(),
|
||||
'display' => array(
|
||||
'model' => array(
|
||||
'teaser' => array(
|
||||
'weight' => 0,
|
||||
'visible' => FALSE,
|
||||
),
|
||||
),
|
||||
'list_price' => array(
|
||||
'teaser' => array(
|
||||
'weight' => 0,
|
||||
'visible' => FALSE,
|
||||
),
|
||||
),
|
||||
'cost' => array(
|
||||
'teaser' => array(
|
||||
'weight' => 0,
|
||||
'visible' => FALSE,
|
||||
),
|
||||
),
|
||||
'weight' => array(
|
||||
'teaser' => array(
|
||||
'weight' => 0,
|
||||
'visible' => FALSE,
|
||||
),
|
||||
),
|
||||
'dimensions' => array(
|
||||
'teaser' => array(
|
||||
'weight' => 0,
|
||||
'visible' => FALSE,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_node__product'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'pathauto_node_product_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_product_pattern'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
@ -77,11 +146,11 @@ function materio_subscriptions_strongarm() {
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_address_format_250';
|
||||
$strongarm->value = '!company
|
||||
!first_name !last_name
|
||||
!street1
|
||||
!street2
|
||||
!postal_code !city
|
||||
$strongarm->value = '!company
|
||||
!first_name !last_name
|
||||
!street1
|
||||
!street2
|
||||
!postal_code !city
|
||||
!country_name_if';
|
||||
$export['uc_address_format_250'] = $strongarm;
|
||||
|
||||
@ -157,7 +226,7 @@ function materio_subscriptions_strongarm() {
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_cap_uc_termsofservice_agreement_cart_enabled';
|
||||
$strongarm->value = 1;
|
||||
$strongarm->value = 0;
|
||||
$export['uc_cap_uc_termsofservice_agreement_cart_enabled'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
@ -223,6 +292,13 @@ function materio_subscriptions_strongarm() {
|
||||
$strongarm->value = '';
|
||||
$export['uc_cart_checkout_complete_page'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_cart_default_same_address';
|
||||
$strongarm->value = 0;
|
||||
$export['uc_cart_default_same_address'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
@ -237,6 +313,13 @@ function materio_subscriptions_strongarm() {
|
||||
$strongarm->value = 1;
|
||||
$export['uc_cart_email_validation'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_cart_empty_button';
|
||||
$strongarm->value = 0;
|
||||
$export['uc_cart_empty_button'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
@ -269,7 +352,7 @@ function materio_subscriptions_strongarm() {
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_checkout_anonymous';
|
||||
$strongarm->value = 1;
|
||||
$strongarm->value = 0;
|
||||
$export['uc_checkout_anonymous'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
@ -332,7 +415,7 @@ function materio_subscriptions_strongarm() {
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_coupon_collapse_pane';
|
||||
$strongarm->value = 0;
|
||||
$strongarm->value = 1;
|
||||
$export['uc_coupon_collapse_pane'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
@ -346,9 +429,9 @@ function materio_subscriptions_strongarm() {
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_credit_accepted_types';
|
||||
$strongarm->value = 'Visa
|
||||
Mastercard
|
||||
Discover
|
||||
$strongarm->value = 'Visa
|
||||
Mastercard
|
||||
Discover
|
||||
American Express';
|
||||
$export['uc_credit_accepted_types'] = $strongarm;
|
||||
|
||||
@ -377,14 +460,14 @@ American Express';
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_credit_discover';
|
||||
$strongarm->value = 1;
|
||||
$strongarm->value = 0;
|
||||
$export['uc_credit_discover'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_credit_encryption_path';
|
||||
$strongarm->value = '/Users/bachir/Sites/materio/encrypt';
|
||||
$strongarm->value = '/home/bachir/Sites/materio/creditcards_encryptkeys';
|
||||
$export['uc_credit_encryption_path'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
@ -398,7 +481,7 @@ American Express';
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_credit_issue_enabled';
|
||||
$strongarm->value = 1;
|
||||
$strongarm->value = 0;
|
||||
$export['uc_credit_issue_enabled'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
@ -426,7 +509,7 @@ American Express';
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_credit_start_enabled';
|
||||
$strongarm->value = 1;
|
||||
$strongarm->value = 0;
|
||||
$export['uc_credit_start_enabled'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
@ -454,7 +537,7 @@ American Express';
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_credit__active_tab';
|
||||
$strongarm->value = 'edit-test-gateway';
|
||||
$strongarm->value = 'edit-cc-fields';
|
||||
$export['uc_credit__active_tab'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
@ -636,8 +719,8 @@ American Express';
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_msg_order_existing_user';
|
||||
$strongarm->value = 'Thank you for shopping at [store:name]. Your current order has been attached to the account we found matching your e-mail address.
|
||||
|
||||
$strongarm->value = 'Thank you for shopping at [store:name]. Your current order has been attached to the account we found matching your e-mail address.
|
||||
|
||||
<a href="/fr/user">Login</a> to view your current order status and order history. Remember to login when you make your next purchase for a faster checkout experience!';
|
||||
$export['uc_msg_order_existing_user'] = $strongarm;
|
||||
|
||||
@ -652,11 +735,11 @@ American Express';
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_msg_order_new_user';
|
||||
$strongarm->value = 'Thank you for shopping at [store:name]. A new account has been created for you here that you may use to view your current order status.
|
||||
|
||||
<a href="/fr/user">Login</a> to your new account using the following information:
|
||||
|
||||
<strong>Username:</strong> !new_username
|
||||
$strongarm->value = 'Thank you for shopping at [store:name]. A new account has been created for you here that you may use to view your current order status.
|
||||
|
||||
<a href="/fr/user">Login</a> to your new account using the following information:
|
||||
|
||||
<strong>Username:</strong> !new_username
|
||||
<strong>Password:</strong> !new_password';
|
||||
$export['uc_msg_order_new_user'] = $strongarm;
|
||||
|
||||
@ -664,10 +747,10 @@ American Express';
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_msg_order_new_user_logged_in';
|
||||
$strongarm->value = 'Thank you for shopping at [store:name]. A new account has been created for you here that you may use to view your current order status.
|
||||
|
||||
Your password and further instructions have been sent to your e-mail address.
|
||||
|
||||
$strongarm->value = 'Thank you for shopping at [store:name]. A new account has been created for you here that you may use to view your current order status.
|
||||
|
||||
Your password and further instructions have been sent to your e-mail address.
|
||||
|
||||
For your convenience, you are already logged in with your newly created account.';
|
||||
$export['uc_msg_order_new_user_logged_in'] = $strongarm;
|
||||
|
||||
@ -822,7 +905,7 @@ For your convenience, you are already logged in with your newly created account.
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_pane_uc_termsofservice_agreement_checkout_enabled';
|
||||
$strongarm->value = 1;
|
||||
$strongarm->value = 0;
|
||||
$export['uc_pane_uc_termsofservice_agreement_checkout_enabled'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
@ -975,8 +1058,10 @@ For your convenience, you are already logged in with your newly created account.
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_roles_default_role_choices';
|
||||
$strongarm->value = array(
|
||||
10 => '10',
|
||||
6 => '6',
|
||||
8 => '8',
|
||||
9 => 0,
|
||||
7 => 0,
|
||||
5 => 0,
|
||||
3 => 0,
|
||||
@ -1030,7 +1115,7 @@ For your convenience, you are already logged in with your newly created account.
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'uc_store_email';
|
||||
$strongarm->value = 'materio@g-u-i.net';
|
||||
$strongarm->value = 'info@materio.com';
|
||||
$export['uc_store_email'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
|
0
materio_user_profiles/materio_user_profiles.features.field.inc
Normal file → Executable file
0
materio_user_profiles/materio_user_profiles.features.field.inc
Normal file → Executable file
@ -0,0 +1,684 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_user_profiles.features.field_base.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_field_bases().
|
||||
*/
|
||||
function materio_user_profiles_field_default_field_bases() {
|
||||
$field_bases = array();
|
||||
|
||||
// Exported field_base: 'field_activity_sector'
|
||||
$field_bases['field_activity_sector'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_activity_sector',
|
||||
'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' => 0,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_administrative_email'
|
||||
$field_bases['field_administrative_email'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_administrative_email',
|
||||
'field_permissions' => array(
|
||||
'type' => 0,
|
||||
),
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => 0,
|
||||
'module' => 'email',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'profile2_private' => 0,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'email',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_adresse'
|
||||
$field_bases['field_adresse'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_adresse',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => 0,
|
||||
'module' => 'addressfield',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'profile2_private' => 1,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'addressfield',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_employee'
|
||||
$field_bases['field_employee'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_employee',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => 0,
|
||||
'module' => 'number',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'profile2_private' => 1,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'number_integer',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_first_name'
|
||||
$field_bases['field_first_name'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_first_name',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'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' => 0,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_memo'
|
||||
$field_bases['field_memo'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_memo',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'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' => TRUE,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text_long',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_naf'
|
||||
$field_bases['field_naf'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_naf',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'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' => 1,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_name'
|
||||
$field_bases['field_name'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_name',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'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' => 0,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_organization'
|
||||
$field_bases['field_organization'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_organization',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'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' => 1,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_private_email'
|
||||
$field_bases['field_private_email'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_private_email',
|
||||
'field_permissions' => array(
|
||||
'type' => 0,
|
||||
),
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => 0,
|
||||
'module' => 'email',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'profile2_private' => 1,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'email',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_private_name'
|
||||
$field_bases['field_private_name'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_private_name',
|
||||
'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' => 1,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_private_name_title'
|
||||
$field_bases['field_private_name_title'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_private_name_title',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(
|
||||
'value' => array(
|
||||
0 => 'value',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'list',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
'MR' => 'Mister',
|
||||
'MS' => 'Misses',
|
||||
'MI' => 'Miss',
|
||||
'DO' => 'Doctor',
|
||||
'PR' => 'Professor',
|
||||
),
|
||||
'allowed_values_function' => '',
|
||||
'entity_translation_sync' => FALSE,
|
||||
'profile2_private' => 1,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'list_text',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_private_phone'
|
||||
$field_bases['field_private_phone'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_private_phone',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => 0,
|
||||
'module' => 'cck_phone',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'profile2_private' => 1,
|
||||
'size' => 30,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'phone_number',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_private_quality'
|
||||
$field_bases['field_private_quality'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_private_quality',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'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' => 0,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 1,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_service'
|
||||
$field_bases['field_service'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_service',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'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' => 1,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_siret'
|
||||
$field_bases['field_siret'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_siret',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'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' => 0,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_user_website'
|
||||
$field_bases['field_user_website'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_user_website',
|
||||
'field_permissions' => array(
|
||||
'type' => 2,
|
||||
),
|
||||
'foreign keys' => array(),
|
||||
'indexes' => array(),
|
||||
'locked' => 0,
|
||||
'module' => 'link',
|
||||
'settings' => array(
|
||||
'attributes' => array(
|
||||
'class' => '',
|
||||
'rel' => '',
|
||||
'target' => 'default',
|
||||
),
|
||||
'display' => array(
|
||||
'url_cutoff' => 80,
|
||||
),
|
||||
'enable_tokens' => 1,
|
||||
'entity_translation_sync' => FALSE,
|
||||
'profile2_private' => 1,
|
||||
'title' => 'optional',
|
||||
'title_maxlength' => 128,
|
||||
'title_value' => '',
|
||||
'url' => 0,
|
||||
'user_role_field' => array(
|
||||
1 => 0,
|
||||
2 => 0,
|
||||
3 => 0,
|
||||
4 => 0,
|
||||
5 => 0,
|
||||
6 => 0,
|
||||
7 => 0,
|
||||
8 => 0,
|
||||
),
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'link_field',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_vat_number_intra_ce'
|
||||
$field_bases['field_vat_number_intra_ce'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'field_vat_number_intra_ce',
|
||||
'field_permissions' => array(
|
||||
'type' => 1,
|
||||
),
|
||||
'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' => 20,
|
||||
'profile2_private' => 0,
|
||||
),
|
||||
'translatable' => 0,
|
||||
'type' => 'text',
|
||||
);
|
||||
|
||||
return $field_bases;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
11
materio_user_profiles/materio_user_profiles.features.inc
Normal file → Executable file
11
materio_user_profiles/materio_user_profiles.features.inc
Normal file → Executable file
@ -4,6 +4,15 @@
|
||||
* materio_user_profiles.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function materio_user_profiles_ctools_plugin_api($module = NULL, $api = NULL) {
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_default_profile2_type().
|
||||
*/
|
||||
@ -15,7 +24,7 @@ function materio_user_profiles_default_profile2_type() {
|
||||
"type" : "adherent",
|
||||
"label" : "Member Profile",
|
||||
"weight" : "0",
|
||||
"data" : { "registration" : 0 }
|
||||
"data" : { "registration" : 0, "use_page" : 0 }
|
||||
}');
|
||||
$items['contact_operationnel'] = entity_import('profile2_type', '{
|
||||
"userCategory" : true,
|
||||
|
626
materio_user_profiles/materio_user_profiles.features.user_permission.inc
Normal file → Executable file
626
materio_user_profiles/materio_user_profiles.features.user_permission.inc
Normal file → Executable file
File diff suppressed because it is too large
Load Diff
73
materio_user_profiles/materio_user_profiles.info
Normal file → Executable file
73
materio_user_profiles/materio_user_profiles.info
Normal file → Executable file
@ -1,13 +1,14 @@
|
||||
name = Materio user profiles
|
||||
core = 7.x
|
||||
package = Materio
|
||||
php = 5.2.4
|
||||
dependencies[] = addressfield
|
||||
dependencies[] = autocomplete_deluxe
|
||||
dependencies[] = cck_phone
|
||||
dependencies[] = ctools
|
||||
dependencies[] = email
|
||||
dependencies[] = entity
|
||||
dependencies[] = features
|
||||
dependencies[] = field_permissions
|
||||
dependencies[] = i18n_taxonomy
|
||||
dependencies[] = link
|
||||
dependencies[] = list
|
||||
@ -15,29 +16,50 @@ dependencies[] = materio_content_types
|
||||
dependencies[] = number
|
||||
dependencies[] = options
|
||||
dependencies[] = profile2
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = taxonomy
|
||||
features[features_api][] = api:1
|
||||
features[field][] = profile2-adherent-field_adresse
|
||||
features[field][] = profile2-adherent-field_employee
|
||||
features[field][] = profile2-adherent-field_first_name
|
||||
features[field][] = profile2-adherent-field_naf
|
||||
features[field][] = profile2-adherent-field_name
|
||||
features[field][] = profile2-adherent-field_organization
|
||||
features[field][] = profile2-adherent-field_private_name_title
|
||||
features[field][] = profile2-adherent-field_private_phone
|
||||
features[field][] = profile2-adherent-field_private_quality
|
||||
features[field][] = profile2-adherent-field_service
|
||||
features[field][] = profile2-adherent-field_siret
|
||||
features[field][] = profile2-adherent-field_user_website
|
||||
features[field][] = profile2-contact_operationnel-field_memo
|
||||
features[field][] = profile2-contact_operationnel-field_private_email
|
||||
features[field][] = profile2-contact_operationnel-field_private_name
|
||||
features[field][] = profile2-contact_operationnel-field_private_name_title
|
||||
features[field][] = profile2-contact_operationnel-field_private_phone
|
||||
features[field][] = profile2-contact_operationnel-field_private_quality
|
||||
features[field][] = user-user-field_company
|
||||
features[field][] = user-user-field_memo
|
||||
features[field][] = user-user-field_newsletter
|
||||
dependencies[] = text
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[features_api][] = api:2
|
||||
features[field_base][] = field_activity_sector
|
||||
features[field_base][] = field_administrative_email
|
||||
features[field_base][] = field_adresse
|
||||
features[field_base][] = field_employee
|
||||
features[field_base][] = field_first_name
|
||||
features[field_base][] = field_memo
|
||||
features[field_base][] = field_naf
|
||||
features[field_base][] = field_name
|
||||
features[field_base][] = field_organization
|
||||
features[field_base][] = field_private_email
|
||||
features[field_base][] = field_private_name
|
||||
features[field_base][] = field_private_name_title
|
||||
features[field_base][] = field_private_phone
|
||||
features[field_base][] = field_private_quality
|
||||
features[field_base][] = field_service
|
||||
features[field_base][] = field_siret
|
||||
features[field_base][] = field_user_website
|
||||
features[field_base][] = field_vat_number_intra_ce
|
||||
features[field_instance][] = profile2-adherent-field_activity_sector
|
||||
features[field_instance][] = profile2-adherent-field_administrative_email
|
||||
features[field_instance][] = profile2-adherent-field_adresse
|
||||
features[field_instance][] = profile2-adherent-field_employee
|
||||
features[field_instance][] = profile2-adherent-field_first_name
|
||||
features[field_instance][] = profile2-adherent-field_naf
|
||||
features[field_instance][] = profile2-adherent-field_name
|
||||
features[field_instance][] = profile2-adherent-field_organization
|
||||
features[field_instance][] = profile2-adherent-field_private_name_title
|
||||
features[field_instance][] = profile2-adherent-field_private_phone
|
||||
features[field_instance][] = profile2-adherent-field_private_quality
|
||||
features[field_instance][] = profile2-adherent-field_service
|
||||
features[field_instance][] = profile2-adherent-field_siret
|
||||
features[field_instance][] = profile2-adherent-field_user_website
|
||||
features[field_instance][] = profile2-adherent-field_vat_number_intra_ce
|
||||
features[field_instance][] = profile2-contact_operationnel-field_memo
|
||||
features[field_instance][] = profile2-contact_operationnel-field_private_email
|
||||
features[field_instance][] = profile2-contact_operationnel-field_private_name
|
||||
features[field_instance][] = profile2-contact_operationnel-field_private_name_title
|
||||
features[field_instance][] = profile2-contact_operationnel-field_private_phone
|
||||
features[field_instance][] = profile2-contact_operationnel-field_private_quality
|
||||
features[profile2_type][] = adherent
|
||||
features[profile2_type][] = contact_operationnel
|
||||
features[user_permission][] = administer profile types
|
||||
@ -110,3 +132,8 @@ features[user_permission][] = view own field_private_quality
|
||||
features[user_permission][] = view own field_service
|
||||
features[user_permission][] = view own field_siret
|
||||
features[user_permission][] = view own field_user_website
|
||||
features[variable][] = field_bundle_settings_profile2__adherent
|
||||
features[variable][] = field_bundle_settings_profile2__contact_operationnel
|
||||
features_exclude[field_base][field_company] = field_company
|
||||
features_exclude[field_instance][user-user-field_company] = user-user-field_company
|
||||
features_exclude[field_instance][user-user-field_memo] = user-user-field_memo
|
||||
|
0
materio_user_profiles/materio_user_profiles.module
Normal file → Executable file
0
materio_user_profiles/materio_user_profiles.module
Normal file → Executable file
44
materio_user_profiles/materio_user_profiles.strongarm.inc
Normal file
44
materio_user_profiles/materio_user_profiles.strongarm.inc
Normal file
@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_user_profiles.strongarm.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_strongarm().
|
||||
*/
|
||||
function materio_user_profiles_strongarm() {
|
||||
$export = array();
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_profile2__adherent';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(
|
||||
'redirect' => array(
|
||||
'weight' => '14',
|
||||
),
|
||||
),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_profile2__adherent'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
$strongarm->name = 'field_bundle_settings_profile2__contact_operationnel';
|
||||
$strongarm->value = array(
|
||||
'view_modes' => array(),
|
||||
'extra_fields' => array(
|
||||
'form' => array(),
|
||||
'display' => array(),
|
||||
),
|
||||
);
|
||||
$export['field_bundle_settings_profile2__contact_operationnel'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user