merged features sudmodule
This commit is contained in:
@@ -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;
|
||||
}
|
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_subscriptions.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
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().
|
||||
*/
|
||||
function materio_subscriptions_uc_product_default_classes() {
|
||||
$items = array(
|
||||
'product' => array(
|
||||
'name' => t('Produit'),
|
||||
'base' => 'uc_product',
|
||||
'description' => t('Utiliser les <em>produits</em> pour représenter les articles en vente sur le site web, incluant toute l\'information unique qui peut être attribuée à un numéro de modèle spécifique.'),
|
||||
'has_title' => '1',
|
||||
'title_label' => t('Nom'),
|
||||
'help' => '',
|
||||
),
|
||||
);
|
||||
return $items;
|
||||
}
|
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_subscriptions.features.taxonomy.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_taxonomy_default_vocabularies().
|
||||
*/
|
||||
function materio_subscriptions_taxonomy_default_vocabularies() {
|
||||
return array(
|
||||
'catalog' => array(
|
||||
'name' => 'Catalog',
|
||||
'machine_name' => 'catalog',
|
||||
'description' => '',
|
||||
'hierarchy' => 1,
|
||||
'module' => 'uc_catalog',
|
||||
'weight' => 0,
|
||||
'language' => 'und',
|
||||
'i18n_mode' => 0,
|
||||
),
|
||||
);
|
||||
}
|
@@ -0,0 +1,325 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_subscriptions.features.user_permission.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_user_default_permissions().
|
||||
*/
|
||||
function materio_subscriptions_user_default_permissions() {
|
||||
$permissions = array();
|
||||
|
||||
// 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: 'access to online payment'.
|
||||
$permissions['access to online payment'] = array(
|
||||
'name' => 'access to online payment',
|
||||
'roles' => array(
|
||||
'Adhérent' => 'Adhérent',
|
||||
'Contact opérationnel' => 'Contact opérationnel',
|
||||
'Premium' => 'Premium',
|
||||
'Student' => 'Student',
|
||||
'Unverified' => 'Unverified',
|
||||
'Utilisateur' => 'Utilisateur',
|
||||
'Utilisateur Alpha Tester' => 'Utilisateur Alpha Tester',
|
||||
'administrator' => 'administrator',
|
||||
'anonymous user' => 'anonymous user',
|
||||
'authenticated user' => 'authenticated user',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'materio_user',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer attributes'.
|
||||
$permissions['administer attributes'] = array(
|
||||
'name' => 'administer attributes',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_attribute',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer cart links'.
|
||||
$permissions['administer cart links'] = array(
|
||||
'name' => 'administer cart links',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_cart_links',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer credit cards'.
|
||||
$permissions['administer credit cards'] = array(
|
||||
'name' => 'administer credit cards',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_credit',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer order workflow'.
|
||||
$permissions['administer order workflow'] = array(
|
||||
'name' => 'administer order workflow',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer own product features'.
|
||||
$permissions['administer own product features'] = array(
|
||||
'name' => 'administer own product features',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer product attributes'.
|
||||
$permissions['administer product attributes'] = array(
|
||||
'name' => 'administer product attributes',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_attribute',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer product classes'.
|
||||
$permissions['administer product classes'] = array(
|
||||
'name' => 'administer product classes',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer product features'.
|
||||
$permissions['administer product features'] = array(
|
||||
'name' => 'administer product features',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer product options'.
|
||||
$permissions['administer product options'] = array(
|
||||
'name' => 'administer product options',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_attribute',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer products'.
|
||||
$permissions['administer products'] = array(
|
||||
'name' => 'administer products',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: 'administer store'.
|
||||
$permissions['administer store'] = array(
|
||||
'name' => 'administer store',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_store',
|
||||
);
|
||||
|
||||
// Exported permission: 'configure taxes'.
|
||||
$permissions['configure taxes'] = array(
|
||||
'name' => 'configure taxes',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_taxes',
|
||||
);
|
||||
|
||||
// Exported permission: 'create orders'.
|
||||
$permissions['create orders'] = array(
|
||||
'name' => 'create orders',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: 'create product content'.
|
||||
$permissions['create product content'] = array(
|
||||
'name' => 'create product content',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'delete any product content'.
|
||||
$permissions['delete any product content'] = array(
|
||||
'name' => 'delete any product content',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'delete orders'.
|
||||
$permissions['delete orders'] = array(
|
||||
'name' => 'delete orders',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: 'delete own product content'.
|
||||
$permissions['delete own product content'] = array(
|
||||
'name' => 'delete own product content',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// 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(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit orders'.
|
||||
$permissions['edit orders'] = array(
|
||||
'name' => 'edit orders',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: 'edit own product content'.
|
||||
$permissions['edit own product content'] = array(
|
||||
'name' => 'edit own product content',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: 'manual payments'.
|
||||
$permissions['manual payments'] = array(
|
||||
'name' => 'manual payments',
|
||||
'roles' => array(),
|
||||
'module' => 'uc_payment',
|
||||
);
|
||||
|
||||
// Exported permission: 'process credit cards'.
|
||||
$permissions['process credit cards'] = array(
|
||||
'name' => 'process credit cards',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_credit',
|
||||
);
|
||||
|
||||
// Exported permission: 'unconditionally delete orders'.
|
||||
$permissions['unconditionally delete orders'] = array(
|
||||
'name' => 'unconditionally delete orders',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: 'view all orders'.
|
||||
$permissions['view all orders'] = array(
|
||||
'name' => 'view all orders',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: 'view cart links report'.
|
||||
$permissions['view cart links report'] = array(
|
||||
'name' => 'view cart links report',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_cart_links',
|
||||
);
|
||||
|
||||
// Exported permission: 'view cc details'.
|
||||
$permissions['view cc details'] = array(
|
||||
'name' => 'view cc details',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_credit',
|
||||
);
|
||||
|
||||
// Exported permission: 'view customers'.
|
||||
$permissions['view customers'] = array(
|
||||
'name' => 'view customers',
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: 'view own invoices'.
|
||||
$permissions['view own invoices'] = array(
|
||||
'name' => 'view own invoices',
|
||||
'roles' => array(),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: 'view own orders'.
|
||||
$permissions['view own orders'] = array(
|
||||
'name' => 'view own orders',
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// 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(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_store',
|
||||
);
|
||||
|
||||
return $permissions;
|
||||
}
|
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_subscriptions.features.user_role.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_user_default_roles().
|
||||
*/
|
||||
function materio_subscriptions_user_default_roles() {
|
||||
$roles = array();
|
||||
|
||||
// Exported role: Adhérent.
|
||||
$roles['Adhérent'] = array(
|
||||
'name' => 'Adhérent',
|
||||
'weight' => 6,
|
||||
);
|
||||
|
||||
// Exported role: Premium.
|
||||
$roles['Premium'] = array(
|
||||
'name' => 'Premium',
|
||||
'weight' => 7,
|
||||
);
|
||||
|
||||
// Exported role: Utilisateur.
|
||||
$roles['Utilisateur'] = array(
|
||||
'name' => 'Utilisateur',
|
||||
'weight' => 3,
|
||||
);
|
||||
|
||||
return $roles;
|
||||
}
|
@@ -0,0 +1,269 @@
|
||||
name = Materio Subscriptions
|
||||
description = susbcritpion ubercart system
|
||||
core = 7.x
|
||||
package = Materio
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = i18n_taxonomy
|
||||
dependencies[] = image
|
||||
dependencies[] = materio_admin
|
||||
dependencies[] = materio_user
|
||||
dependencies[] = node
|
||||
dependencies[] = options
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = taxonomy
|
||||
dependencies[] = text
|
||||
dependencies[] = uc_attribute
|
||||
dependencies[] = uc_cart_links
|
||||
dependencies[] = uc_cmcic
|
||||
dependencies[] = uc_credit
|
||||
dependencies[] = uc_order
|
||||
dependencies[] = uc_payment
|
||||
dependencies[] = uc_payment_pack
|
||||
dependencies[] = uc_product
|
||||
dependencies[] = uc_store
|
||||
dependencies[] = uc_taxes
|
||||
dependencies[] = views
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
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][] = access to online payment
|
||||
features[user_permission][] = administer attributes
|
||||
features[user_permission][] = administer cart links
|
||||
features[user_permission][] = administer credit cards
|
||||
features[user_permission][] = administer order workflow
|
||||
features[user_permission][] = administer own product features
|
||||
features[user_permission][] = administer product attributes
|
||||
features[user_permission][] = administer product classes
|
||||
features[user_permission][] = administer product features
|
||||
features[user_permission][] = administer product options
|
||||
features[user_permission][] = administer products
|
||||
features[user_permission][] = administer store
|
||||
features[user_permission][] = configure taxes
|
||||
features[user_permission][] = create orders
|
||||
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][] = manual payments
|
||||
features[user_permission][] = process credit cards
|
||||
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_role][] = Adhérent
|
||||
features[user_role][] = Premium
|
||||
features[user_role][] = Utilisateur
|
||||
features[variable][] = date_format_uc_store
|
||||
features[variable][] = uc_add_item_redirect
|
||||
features[variable][] = uc_address_fields
|
||||
features[variable][] = uc_address_fields_required
|
||||
features[variable][] = uc_address_fields_weight
|
||||
features[variable][] = uc_address_format_12
|
||||
features[variable][] = uc_address_format_124
|
||||
features[variable][] = uc_address_format_16
|
||||
features[variable][] = uc_address_format_20
|
||||
features[variable][] = uc_address_format_24
|
||||
features[variable][] = uc_address_format_250
|
||||
features[variable][] = uc_address_format_4
|
||||
features[variable][] = uc_address_format_784
|
||||
features[variable][] = uc_address_format_795
|
||||
features[variable][] = uc_address_format_796
|
||||
features[variable][] = uc_address_format_798
|
||||
features[variable][] = uc_address_format_8
|
||||
features[variable][] = uc_address_format_800
|
||||
features[variable][] = uc_address_format_804
|
||||
features[variable][] = uc_address_format_826
|
||||
features[variable][] = uc_address_format_840
|
||||
features[variable][] = uc_address_format_894
|
||||
features[variable][] = uc_attribute_option_price_format
|
||||
features[variable][] = uc_cap_cart_form_enabled
|
||||
features[variable][] = uc_cap_cart_form_weight
|
||||
features[variable][] = uc_cap_coupon_auto_enabled
|
||||
features[variable][] = uc_cap_coupon_auto_weight
|
||||
features[variable][] = uc_cap_coupon_enabled
|
||||
features[variable][] = uc_cap_coupon_weight
|
||||
features[variable][] = uc_cap_uc_termsofservice_agreement_cart_enabled
|
||||
features[variable][] = uc_cap_uc_termsofservice_agreement_cart_weight
|
||||
features[variable][] = uc_cart_add_item_msg
|
||||
features[variable][] = uc_cart_anon_duration
|
||||
features[variable][] = uc_cart_anon_unit
|
||||
features[variable][] = uc_cart_auth_duration
|
||||
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_delivery_not_shippable
|
||||
features[variable][] = uc_cart_email_validation
|
||||
features[variable][] = uc_cart_mail_existing
|
||||
features[variable][] = uc_cart_new_account_details
|
||||
features[variable][] = uc_cart_new_account_name
|
||||
features[variable][] = uc_cart_new_account_password
|
||||
features[variable][] = uc_check_address
|
||||
features[variable][] = uc_check_mailing_city
|
||||
features[variable][] = uc_check_mailing_company
|
||||
features[variable][] = uc_check_mailing_country
|
||||
features[variable][] = uc_check_mailing_name
|
||||
features[variable][] = uc_check_mailing_postal_code
|
||||
features[variable][] = uc_check_mailing_street1
|
||||
features[variable][] = uc_check_mailing_street2
|
||||
features[variable][] = uc_check_mailing_zone
|
||||
features[variable][] = uc_check_policy
|
||||
features[variable][] = uc_checkout_anonymous
|
||||
features[variable][] = uc_checkout_enabled
|
||||
features[variable][] = uc_checkout_instructions
|
||||
features[variable][] = uc_checkout_review_instructions
|
||||
features[variable][] = uc_collapse_current_pane
|
||||
features[variable][] = uc_continue_shopping_type
|
||||
features[variable][] = uc_continue_shopping_url
|
||||
features[variable][] = uc_continue_shopping_use_last_url
|
||||
features[variable][] = uc_coupon_collapse_pane
|
||||
features[variable][] = uc_coupon_pane_description
|
||||
features[variable][] = uc_credit__active_tab
|
||||
features[variable][] = uc_credit_accepted_types
|
||||
features[variable][] = uc_credit_amex
|
||||
features[variable][] = uc_credit_bank_enabled
|
||||
features[variable][] = uc_credit_cvv_enabled
|
||||
features[variable][] = uc_credit_discover
|
||||
features[variable][] = uc_credit_encryption_path
|
||||
features[variable][] = uc_credit_fail_message
|
||||
features[variable][] = uc_credit_issue_enabled
|
||||
features[variable][] = uc_credit_mastercard
|
||||
features[variable][] = uc_credit_owner_enabled
|
||||
features[variable][] = uc_credit_policy
|
||||
features[variable][] = uc_credit_start_enabled
|
||||
features[variable][] = uc_credit_type_enabled
|
||||
features[variable][] = uc_credit_validate_numbers
|
||||
features[variable][] = uc_credit_visa
|
||||
features[variable][] = uc_currency_code
|
||||
features[variable][] = uc_currency_dec
|
||||
features[variable][] = uc_currency_prec
|
||||
features[variable][] = uc_currency_sign
|
||||
features[variable][] = uc_currency_thou
|
||||
features[variable][] = uc_customer_list_address
|
||||
features[variable][] = uc_field_city
|
||||
features[variable][] = uc_field_company
|
||||
features[variable][] = uc_field_country
|
||||
features[variable][] = uc_field_first_name
|
||||
features[variable][] = uc_field_last_name
|
||||
features[variable][] = uc_field_phone
|
||||
features[variable][] = uc_field_postal_code
|
||||
features[variable][] = uc_field_street1
|
||||
features[variable][] = uc_field_street2
|
||||
features[variable][] = uc_field_zone
|
||||
features[variable][] = uc_footer_message
|
||||
features[variable][] = uc_image_product
|
||||
features[variable][] = uc_length_format_cm
|
||||
features[variable][] = uc_length_format_ft
|
||||
features[variable][] = uc_length_format_in
|
||||
features[variable][] = uc_length_format_mm
|
||||
features[variable][] = uc_length_unit
|
||||
features[variable][] = uc_minimum_subtotal
|
||||
features[variable][] = uc_msg_continue_shopping
|
||||
features[variable][] = uc_msg_order_existing_user
|
||||
features[variable][] = uc_msg_order_logged_in
|
||||
features[variable][] = uc_msg_order_new_user
|
||||
features[variable][] = uc_msg_order_new_user_logged_in
|
||||
features[variable][] = uc_msg_order_submit
|
||||
features[variable][] = uc_new_customer_email
|
||||
features[variable][] = uc_new_customer_login
|
||||
features[variable][] = uc_new_customer_status_active
|
||||
features[variable][] = uc_order_capitalize_addresses
|
||||
features[variable][] = uc_pane_billing_enabled
|
||||
features[variable][] = uc_pane_billing_weight
|
||||
features[variable][] = uc_pane_cart_enabled
|
||||
features[variable][] = uc_pane_cart_weight
|
||||
features[variable][] = uc_pane_comments_enabled
|
||||
features[variable][] = uc_pane_comments_weight
|
||||
features[variable][] = uc_pane_coupon_automatic_enabled
|
||||
features[variable][] = uc_pane_coupon_automatic_weight
|
||||
features[variable][] = uc_pane_coupon_enabled
|
||||
features[variable][] = uc_pane_coupon_weight
|
||||
features[variable][] = uc_pane_customer_enabled
|
||||
features[variable][] = uc_pane_customer_weight
|
||||
features[variable][] = uc_pane_delivery_enabled
|
||||
features[variable][] = uc_pane_delivery_weight
|
||||
features[variable][] = uc_pane_payment_enabled
|
||||
features[variable][] = uc_pane_payment_weight
|
||||
features[variable][] = uc_pane_uc_termsofservice_agreement_checkout_enabled
|
||||
features[variable][] = uc_pane_uc_termsofservice_agreement_checkout_weight
|
||||
features[variable][] = uc_payment_credit_gateway
|
||||
features[variable][] = uc_payment_method_check_checkout
|
||||
features[variable][] = uc_payment_method_check_weight
|
||||
features[variable][] = uc_payment_method_cmcic_checkout
|
||||
features[variable][] = uc_payment_method_cmcic_weight
|
||||
features[variable][] = uc_payment_method_cod_checkout
|
||||
features[variable][] = uc_payment_method_cod_weight
|
||||
features[variable][] = uc_payment_method_credit_checkout
|
||||
features[variable][] = uc_payment_method_credit_weight
|
||||
features[variable][] = uc_payment_method_free_order_checkout
|
||||
features[variable][] = uc_payment_method_free_order_weight
|
||||
features[variable][] = uc_payment_method_other_checkout
|
||||
features[variable][] = uc_payment_method_other_weight
|
||||
features[variable][] = uc_payment_show_order_total_preview
|
||||
features[variable][] = uc_pg_test_gateway_cc_txn_type
|
||||
features[variable][] = uc_pg_test_gateway_enabled
|
||||
features[variable][] = uc_product_add_to_cart_qty
|
||||
features[variable][] = uc_product_image_widget
|
||||
features[variable][] = uc_product_update_node_view
|
||||
features[variable][] = uc_reports_reported_statuses
|
||||
features[variable][] = uc_reports_table_size
|
||||
features[variable][] = uc_roles_default_by_quantity
|
||||
features[variable][] = uc_roles_default_end_expiration
|
||||
features[variable][] = uc_roles_default_end_time
|
||||
features[variable][] = uc_roles_default_granularity
|
||||
features[variable][] = uc_roles_default_length
|
||||
features[variable][] = uc_roles_default_role
|
||||
features[variable][] = uc_roles_default_role_choices
|
||||
features[variable][] = uc_roles_default_show_expiration
|
||||
features[variable][] = uc_roles_reminder_granularity
|
||||
features[variable][] = uc_roles_reminder_length
|
||||
features[variable][] = uc_sign_after_amount
|
||||
features[variable][] = uc_store_city
|
||||
features[variable][] = uc_store_country
|
||||
features[variable][] = uc_store_email
|
||||
features[variable][] = uc_store_email_include_name
|
||||
features[variable][] = uc_store_fax
|
||||
features[variable][] = uc_store_help_page
|
||||
features[variable][] = uc_store_name
|
||||
features[variable][] = uc_store_owner
|
||||
features[variable][] = uc_store_phone
|
||||
features[variable][] = uc_store_postal_code
|
||||
features[variable][] = uc_store_street1
|
||||
features[variable][] = uc_store_street2
|
||||
features[variable][] = uc_store_zone
|
||||
features[variable][] = uc_termsofservice_checkout_display
|
||||
features[variable][] = uc_termsofservice_checkout_node
|
||||
features[variable][] = uc_termsofservice_checkout_required
|
||||
features[variable][] = uc_termsofservice_checkout_rules
|
||||
features[variable][] = uc_termsofservice_checkout_title
|
||||
features[variable][] = uc_use_next_buttons
|
||||
features[variable][] = uc_weight_format_g
|
||||
features[variable][] = uc_weight_format_kg
|
||||
features[variable][] = uc_weight_format_lb
|
||||
features[variable][] = uc_weight_format_oz
|
||||
features[variable][] = uc_weight_unit
|
||||
features_exclude[dependencies][uc_coupon] = uc_coupon
|
||||
project path = sites/all/modules/features
|
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the Materio Subscriptions feature.
|
||||
*/
|
||||
|
||||
include_once 'materio_subscriptions.features.inc';
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user