updated/sunc feautures betxeen local and online

This commit is contained in:
Bachir Soussi Chiadmi
2014-07-11 18:32:59 +02:00
parent 5cde537e0a
commit 41e7f80383
41 changed files with 6561 additions and 1187 deletions

View File

View File

@@ -13,24 +13,17 @@ function materio_subscriptions_ctools_plugin_api($module = NULL, $api = NULL) {
}
}
/**
* 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('Product'),
'name' => t('Produit'),
'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.'),
'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('Name'),
'title_label' => t('Nom'),
'help' => '',
),
);

View File

View File

@@ -10,15 +10,6 @@
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: 'administer attributes'.
$permissions['administer attributes'] = array(
'name' => 'administer attributes',
@@ -163,13 +154,6 @@ function materio_subscriptions_user_default_permissions() {
'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',
@@ -197,60 +181,14 @@ function materio_subscriptions_user_default_permissions() {
'module' => 'node',
);
// 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: '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: 'manage store coupons'.
$permissions['manage store coupons'] = array(
'name' => 'manage store coupons',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'uc_coupon',
);
// Exported permission: 'process credit cards'.
@@ -262,15 +200,6 @@ function materio_subscriptions_user_default_permissions() {
'module' => 'uc_credit',
);
// 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',
@@ -318,45 +247,15 @@ function materio_subscriptions_user_default_permissions() {
'module' => 'uc_order',
);
// 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(
'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 payments'.
$permissions['view payments'] = array(
'name' => 'view payments',
'roles' => array(),
'module' => 'uc_payment',
);
// Exported permission: 'view reports'.
$permissions['view reports'] = array(
'name' => 'view reports',
@@ -367,5 +266,15 @@ function materio_subscriptions_user_default_permissions() {
'module' => 'uc_store',
);
// Exported permission: 'view store coupons'.
$permissions['view store coupons'] = array(
'name' => 'view store coupons',
'roles' => array(
'administrator' => 'administrator',
'root' => 'root',
),
'module' => 'uc_coupon',
);
return $permissions;
}

View File

34
materio_subscriptions/materio_subscriptions.info Executable file → Normal file
View File

@@ -5,25 +5,19 @@ 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[ctools][] = views:views_default:3.0
features[features_api][] = api:2
features[field_base][] = body
features[field_base][] = synonyms_synonym
@@ -37,7 +31,6 @@ 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
@@ -54,36 +47,22 @@ 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][] = 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][] = manage store coupons
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
@@ -108,10 +87,8 @@ 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
@@ -121,7 +98,6 @@ 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
@@ -207,9 +183,6 @@ 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
@@ -242,3 +215,4 @@ features[variable][] = uc_weight_format_kg
features[variable][] = uc_weight_format_lb
features[variable][] = uc_weight_format_oz
features[variable][] = uc_weight_unit
project path = sites/all/modules/features

0
materio_subscriptions/materio_subscriptions.module Executable file → Normal file
View File

167
materio_subscriptions/materio_subscriptions.strongarm.inc Executable file → Normal file
View File

@@ -10,75 +10,6 @@
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;
@@ -146,11 +77,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;
@@ -226,7 +157,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 = 0;
$strongarm->value = 1;
$export['uc_cap_uc_termsofservice_agreement_cart_enabled'] = $strongarm;
$strongarm = new stdClass();
@@ -292,13 +223,6 @@ 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;
@@ -313,13 +237,6 @@ 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;
@@ -352,7 +269,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 = 0;
$strongarm->value = 1;
$export['uc_checkout_anonymous'] = $strongarm;
$strongarm = new stdClass();
@@ -383,13 +300,6 @@ function materio_subscriptions_strongarm() {
$strongarm->value = 0;
$export['uc_collapse_current_pane'] = $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_continue_shopping_text';
$strongarm->value = '';
$export['uc_continue_shopping_text'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;
@@ -415,7 +325,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 = 1;
$strongarm->value = 0;
$export['uc_coupon_collapse_pane'] = $strongarm;
$strongarm = new stdClass();
@@ -429,9 +339,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;
@@ -460,14 +370,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 = 0;
$strongarm->value = 1;
$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 = '/home/bachir/Sites/materio/creditcards_encryptkeys';
$strongarm->value = '/Users/bachir/Sites/materio/encrypt';
$export['uc_credit_encryption_path'] = $strongarm;
$strongarm = new stdClass();
@@ -481,7 +391,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 = 0;
$strongarm->value = 1;
$export['uc_credit_issue_enabled'] = $strongarm;
$strongarm = new stdClass();
@@ -509,7 +419,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 = 0;
$strongarm->value = 1;
$export['uc_credit_start_enabled'] = $strongarm;
$strongarm = new stdClass();
@@ -537,7 +447,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-cc-fields';
$strongarm->value = 'edit-test-gateway';
$export['uc_credit__active_tab'] = $strongarm;
$strongarm = new stdClass();
@@ -719,8 +629,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;
@@ -735,11 +645,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;
@@ -747,10 +657,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;
@@ -905,7 +815,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 = 0;
$strongarm->value = 1;
$export['uc_pane_uc_termsofservice_agreement_checkout_enabled'] = $strongarm;
$strongarm = new stdClass();
@@ -1011,27 +921,6 @@ For your convenience, you are already logged in with your newly created account.
);
$export['uc_roles_default_end_time'] = $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_roles_default_expiration_header';
$strongarm->value = 'Expiring roles';
$export['uc_roles_default_expiration_header'] = $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_roles_default_expiration_message';
$strongarm->value = 'This role will expire on !date';
$export['uc_roles_default_expiration_message'] = $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_roles_default_expiration_title';
$strongarm->value = '!role_name';
$export['uc_roles_default_expiration_title'] = $strongarm;
$strongarm = new stdClass();
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
$strongarm->api_version = 1;