529
materio_subscriptions/materio_subscriptions.features.field.inc
Normal file
529
materio_subscriptions/materio_subscriptions.features.field.inc
Normal file
@@ -0,0 +1,529 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_subscriptions.features.field.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_field_default_fields().
|
||||
*/
|
||||
function materio_subscriptions_field_default_fields() {
|
||||
$fields = array();
|
||||
|
||||
// Exported field: 'node-product-body'.
|
||||
$fields['node-product-body'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(
|
||||
0 => 'node',
|
||||
),
|
||||
'field_name' => 'body',
|
||||
'field_permissions' => array(
|
||||
'type' => '0',
|
||||
),
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'profile2_private' => FALSE,
|
||||
),
|
||||
'translatable' => '1',
|
||||
'type' => 'text_with_summary',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'product',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'bookmark' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardbig' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardfull' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardmedium' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardsmall' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 0,
|
||||
),
|
||||
'print' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'trim_length' => 600,
|
||||
),
|
||||
'type' => 'text_summary_or_trimmed',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'body',
|
||||
'label' => 'Description',
|
||||
'required' => FALSE,
|
||||
'settings' => array(
|
||||
'display_summary' => TRUE,
|
||||
'entity_translation_sync' => FALSE,
|
||||
'text_processing' => 1,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'rows' => 20,
|
||||
'summary_rows' => 5,
|
||||
),
|
||||
'type' => 'text_textarea_with_summary',
|
||||
'weight' => 31,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-product-taxonomy_catalog'.
|
||||
$fields['node-product-taxonomy_catalog'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'taxonomy_catalog',
|
||||
'foreign keys' => array(
|
||||
'tid' => array(
|
||||
'columns' => array(
|
||||
'tid' => 'tid',
|
||||
),
|
||||
'table' => 'taxonomy_term_data',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'tid' => array(
|
||||
0 => 'tid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'taxonomy',
|
||||
'settings' => array(
|
||||
'allowed_values' => array(
|
||||
0 => array(
|
||||
'vocabulary' => 'catalog',
|
||||
'parent' => 0,
|
||||
),
|
||||
),
|
||||
'entity_translation_sync' => FALSE,
|
||||
'options_list_callback' => 'i18n_taxonomy_allowed_values',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'taxonomy_term_reference',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'product',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'bookmark' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardbig' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardfull' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardmedium' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardsmall' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'i18n_taxonomy',
|
||||
'settings' => array(),
|
||||
'type' => 'i18n_taxonomy_term_reference_link',
|
||||
'weight' => 2,
|
||||
),
|
||||
'print' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'taxonomy_catalog',
|
||||
'label' => 'Catalog',
|
||||
'required' => FALSE,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'module' => 'options',
|
||||
'settings' => array(),
|
||||
'type' => 'options_select',
|
||||
'weight' => 33,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'node-product-uc_product_image'.
|
||||
$fields['node-product-uc_product_image'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'uc_product_image',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'entity_translation_sync' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'image',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'product',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'bookmark' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardbig' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardfull' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardmedium' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'cardsmall' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => '',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => 1,
|
||||
),
|
||||
'full' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'uc_product',
|
||||
'settings' => array(),
|
||||
'type' => 'uc_product_image',
|
||||
'weight' => 0,
|
||||
),
|
||||
'print' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'uc_product',
|
||||
'settings' => array(),
|
||||
'type' => 'uc_product_image',
|
||||
'weight' => 1,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'uc_product_image',
|
||||
'label' => 'Image',
|
||||
'required' => FALSE,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'entity_translation_sync' => FALSE,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'weight' => -2,
|
||||
'widget' => array(
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => 32,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'taxonomy_term-catalog-synonyms_synonym'.
|
||||
$fields['taxonomy_term-catalog-synonyms_synonym'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '-1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'synonyms_synonym',
|
||||
'field_permissions' => array(
|
||||
'type' => '0',
|
||||
),
|
||||
'foreign keys' => array(
|
||||
'format' => array(
|
||||
'columns' => array(
|
||||
'format' => 'format',
|
||||
),
|
||||
'table' => 'filter_format',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'max_length' => 255,
|
||||
'profile2_private' => FALSE,
|
||||
),
|
||||
'translatable' => '1',
|
||||
'type' => 'text',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'catalog',
|
||||
'default_value' => NULL,
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'taxonomy_term',
|
||||
'field_name' => 'synonyms_synonym',
|
||||
'label' => 'Synonyms for this term',
|
||||
'required' => FALSE,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'text_processing' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'text_textfield',
|
||||
'weight' => 31,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field: 'taxonomy_term-catalog-uc_catalog_image'.
|
||||
$fields['taxonomy_term-catalog-uc_catalog_image'] = array(
|
||||
'field_config' => array(
|
||||
'active' => '1',
|
||||
'cardinality' => '1',
|
||||
'deleted' => '0',
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'uc_catalog_image',
|
||||
'foreign keys' => array(
|
||||
'fid' => array(
|
||||
'columns' => array(
|
||||
'fid' => 'fid',
|
||||
),
|
||||
'table' => 'file_managed',
|
||||
),
|
||||
),
|
||||
'indexes' => array(
|
||||
'fid' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
),
|
||||
'locked' => '0',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'default_image' => 0,
|
||||
'entity_translation_sync' => array(
|
||||
0 => 'fid',
|
||||
),
|
||||
'uri_scheme' => 'public',
|
||||
),
|
||||
'translatable' => '0',
|
||||
'type' => 'image',
|
||||
),
|
||||
'field_instance' => array(
|
||||
'bundle' => 'catalog',
|
||||
'deleted' => '0',
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => '',
|
||||
'image_style' => '',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => 1,
|
||||
),
|
||||
'full' => array(
|
||||
'label' => 'hidden',
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'image_link' => 'content',
|
||||
'image_style' => 'uc_category',
|
||||
),
|
||||
'type' => 'image',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'taxonomy_term',
|
||||
'field_name' => 'uc_catalog_image',
|
||||
'label' => 'Image',
|
||||
'required' => FALSE,
|
||||
'settings' => array(
|
||||
'alt_field' => 0,
|
||||
'default_image' => 0,
|
||||
'entity_translation_sync' => FALSE,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'png gif jpg jpeg',
|
||||
'max_filesize' => '',
|
||||
'max_resolution' => '',
|
||||
'min_resolution' => '',
|
||||
'title_field' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'module' => 'image',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'weight' => 32,
|
||||
),
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Catalog');
|
||||
t('Description');
|
||||
t('Image');
|
||||
t('Synonyms for this term');
|
||||
|
||||
return $fields;
|
||||
}
|
32
materio_subscriptions/materio_subscriptions.features.inc
Normal file
32
materio_subscriptions/materio_subscriptions.features.inc
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_subscriptions.features.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_ctools_plugin_api().
|
||||
*/
|
||||
function materio_subscriptions_ctools_plugin_api() {
|
||||
list($module, $api) = func_get_args();
|
||||
if ($module == "strongarm" && $api == "strongarm") {
|
||||
return array("version" => "1");
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_uc_product_default_classes().
|
||||
*/
|
||||
function materio_subscriptions_uc_product_default_classes() {
|
||||
$items = array(
|
||||
'product' => array(
|
||||
'name' => t('Product'),
|
||||
'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'),
|
||||
'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,280 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* materio_subscriptions.features.user_permission.inc
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_user_default_permissions().
|
||||
*/
|
||||
function materio_subscriptions_user_default_permissions() {
|
||||
$permissions = array();
|
||||
|
||||
// Exported permission: administer attributes.
|
||||
$permissions['administer attributes'] = array(
|
||||
'name' => 'administer attributes',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_attribute',
|
||||
);
|
||||
|
||||
// Exported permission: administer cart links.
|
||||
$permissions['administer cart links'] = array(
|
||||
'name' => 'administer cart links',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_cart_links',
|
||||
);
|
||||
|
||||
// Exported permission: administer credit cards.
|
||||
$permissions['administer credit cards'] = array(
|
||||
'name' => 'administer credit cards',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_credit',
|
||||
);
|
||||
|
||||
// Exported permission: administer order workflow.
|
||||
$permissions['administer order workflow'] = array(
|
||||
'name' => 'administer order workflow',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: administer own product features.
|
||||
$permissions['administer own product features'] = array(
|
||||
'name' => 'administer own product features',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: administer product attributes.
|
||||
$permissions['administer product attributes'] = array(
|
||||
'name' => 'administer product attributes',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_attribute',
|
||||
);
|
||||
|
||||
// Exported permission: administer product classes.
|
||||
$permissions['administer product classes'] = array(
|
||||
'name' => 'administer product classes',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: administer product features.
|
||||
$permissions['administer product features'] = array(
|
||||
'name' => 'administer product features',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: administer product options.
|
||||
$permissions['administer product options'] = array(
|
||||
'name' => 'administer product options',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_attribute',
|
||||
);
|
||||
|
||||
// Exported permission: administer products.
|
||||
$permissions['administer products'] = array(
|
||||
'name' => 'administer products',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_product',
|
||||
);
|
||||
|
||||
// Exported permission: administer store.
|
||||
$permissions['administer store'] = array(
|
||||
'name' => 'administer store',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_store',
|
||||
);
|
||||
|
||||
// Exported permission: create orders.
|
||||
$permissions['create orders'] = array(
|
||||
'name' => 'create orders',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: create product content.
|
||||
$permissions['create product content'] = array(
|
||||
'name' => 'create product content',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: delete any product content.
|
||||
$permissions['delete any product content'] = array(
|
||||
'name' => 'delete any product content',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: delete orders.
|
||||
$permissions['delete orders'] = array(
|
||||
'name' => 'delete orders',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: delete own product content.
|
||||
$permissions['delete own product content'] = array(
|
||||
'name' => 'delete own product content',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: edit any product content.
|
||||
$permissions['edit any product content'] = array(
|
||||
'name' => 'edit any product content',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
// Exported permission: edit orders.
|
||||
$permissions['edit orders'] = array(
|
||||
'name' => 'edit orders',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: edit own product content.
|
||||
$permissions['edit own product content'] = array(
|
||||
'name' => 'edit own product content',
|
||||
'roles' => array(
|
||||
0 => '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: process credit cards.
|
||||
$permissions['process credit cards'] = array(
|
||||
'name' => 'process credit cards',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_credit',
|
||||
);
|
||||
|
||||
// Exported permission: unconditionally delete orders.
|
||||
$permissions['unconditionally delete orders'] = array(
|
||||
'name' => 'unconditionally delete orders',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: view all orders.
|
||||
$permissions['view all orders'] = array(
|
||||
'name' => 'view all orders',
|
||||
'roles' => array(
|
||||
0 => 'administrator',
|
||||
1 => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: view cart links report.
|
||||
$permissions['view cart links report'] = array(
|
||||
'name' => 'view cart links report',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_cart_links',
|
||||
);
|
||||
|
||||
// Exported permission: view cc details.
|
||||
$permissions['view cc details'] = array(
|
||||
'name' => 'view cc details',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_credit',
|
||||
);
|
||||
|
||||
// Exported permission: view customers.
|
||||
$permissions['view customers'] = array(
|
||||
'name' => 'view customers',
|
||||
'roles' => array(
|
||||
0 => 'administrator',
|
||||
1 => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: view own orders.
|
||||
$permissions['view own orders'] = array(
|
||||
'name' => 'view own orders',
|
||||
'roles' => array(
|
||||
0 => 'root',
|
||||
),
|
||||
'module' => 'uc_order',
|
||||
);
|
||||
|
||||
// Exported permission: view reports.
|
||||
$permissions['view reports'] = array(
|
||||
'name' => 'view reports',
|
||||
'roles' => array(
|
||||
0 => 'administrator',
|
||||
1 => '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;
|
||||
}
|
@@ -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' => '3',
|
||||
);
|
||||
|
||||
// Exported role: Premium.
|
||||
$roles['Premium'] = array(
|
||||
'name' => 'Premium',
|
||||
'weight' => '4',
|
||||
);
|
||||
|
||||
// Exported role: Utilisateur.
|
||||
$roles['Utilisateur'] = array(
|
||||
'name' => 'Utilisateur',
|
||||
'weight' => '2',
|
||||
);
|
||||
|
||||
return $roles;
|
||||
}
|
214
materio_subscriptions/materio_subscriptions.info
Normal file
214
materio_subscriptions/materio_subscriptions.info
Normal file
@@ -0,0 +1,214 @@
|
||||
name = Materio Subscriptions
|
||||
core = 7.x
|
||||
package = Materio
|
||||
php = 5.2.4
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = i18n_taxonomy
|
||||
dependencies[] = image
|
||||
dependencies[] = options
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = taxonomy
|
||||
dependencies[] = uc_attribute
|
||||
dependencies[] = uc_cart_links
|
||||
dependencies[] = uc_coupon
|
||||
dependencies[] = uc_credit
|
||||
dependencies[] = uc_order
|
||||
dependencies[] = uc_product
|
||||
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[taxonomy][] = catalog
|
||||
features[uc_product_classes][] = product
|
||||
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][] = 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][] = 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][] = 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 orders
|
||||
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][] = 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_124
|
||||
features[variable][] = uc_address_format_250
|
||||
features[variable][] = uc_address_format_840
|
||||
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_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_text
|
||||
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_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_expiration_header
|
||||
features[variable][] = uc_roles_default_expiration_message
|
||||
features[variable][] = uc_roles_default_expiration_title
|
||||
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
|
7
materio_subscriptions/materio_subscriptions.module
Normal file
7
materio_subscriptions/materio_subscriptions.module
Normal file
@@ -0,0 +1,7 @@
|
||||
<?php
|
||||
/**
|
||||
* @file
|
||||
* Code for the Materio Subscriptions feature.
|
||||
*/
|
||||
|
||||
include_once 'materio_subscriptions.features.inc';
|
1184
materio_subscriptions/materio_subscriptions.strongarm.inc
Normal file
1184
materio_subscriptions/materio_subscriptions.strongarm.inc
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user