recreated features
This commit is contained in:
parent
3eb20676ca
commit
82bf36a5eb
@ -81,49 +81,63 @@ function frequently_asked_questions_user_default_permissions() {
|
||||
// Exported permission: 'enter faq revision log entry'.
|
||||
$permissions['enter faq revision log entry'] = array(
|
||||
'name' => 'enter faq revision log entry',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq authored by option'.
|
||||
$permissions['override faq authored by option'] = array(
|
||||
'name' => 'override faq authored by option',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq authored on option'.
|
||||
$permissions['override faq authored on option'] = array(
|
||||
'name' => 'override faq authored on option',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq promote to front page option'.
|
||||
$permissions['override faq promote to front page option'] = array(
|
||||
'name' => 'override faq promote to front page option',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq published option'.
|
||||
$permissions['override faq published option'] = array(
|
||||
'name' => 'override faq published option',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq revision option'.
|
||||
$permissions['override faq revision option'] = array(
|
||||
'name' => 'override faq revision option',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
// Exported permission: 'override faq sticky option'.
|
||||
$permissions['override faq sticky option'] = array(
|
||||
'name' => 'override faq sticky option',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'override_node_options',
|
||||
);
|
||||
|
||||
|
@ -54,4 +54,5 @@ features[variable][] = faq_title
|
||||
features[variable][] = faq_use_categories
|
||||
features[variable][] = faq_use_teaser
|
||||
features[variable][] = nodeformscols_field_placements_faq_default
|
||||
features[variable][] = pathauto_taxonomy_term_faq_categories_pattern
|
||||
project path = sites/all/modules/features
|
||||
|
@ -266,5 +266,12 @@ function frequently_asked_questions_strongarm() {
|
||||
);
|
||||
$export['nodeformscols_field_placements_faq_default'] = $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_taxonomy_term_faq_categories_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_taxonomy_term_faq_categories_pattern'] = $strongarm;
|
||||
|
||||
return $export;
|
||||
}
|
||||
|
@ -56,22 +56,22 @@ function materio_administration_menu_default_menu_links() {
|
||||
$menu_links['navigation_company:admin/structure/taxonomy_manager/voc/company'] = array(
|
||||
'menu_name' => 'navigation',
|
||||
'link_path' => 'admin/structure/taxonomy_manager/voc/company',
|
||||
'router_path' => 'admin/structure/taxonomy_manager/voc/%',
|
||||
'router_path' => 'admin/structure',
|
||||
'link_title' => 'Company',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
'identifier' => 'navigation_company:admin/structure/taxonomy_manager/voc/company',
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => 0,
|
||||
'hidden' => 1,
|
||||
'external' => 0,
|
||||
'has_children' => 0,
|
||||
'expanded' => 0,
|
||||
'weight' => 9,
|
||||
'customized' => 0,
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 0,
|
||||
'parent_identifier' => 'navigation_taxonomy:admin/structure/taxonomy_manager/voc',
|
||||
'menu_links_customized' => 1,
|
||||
'parent_identifier' => 'navigation_taxonomy-manager:admin/structure/taxonomy_manager/voc',
|
||||
);
|
||||
// Exported menu link: navigation_compose-tips:filter/tips
|
||||
$menu_links['navigation_compose-tips:filter/tips'] = array(
|
||||
@ -211,7 +211,7 @@ function materio_administration_menu_default_menu_links() {
|
||||
'external' => 0,
|
||||
'has_children' => 0,
|
||||
'expanded' => 0,
|
||||
'weight' => 0,
|
||||
'weight' => -37,
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
@ -256,28 +256,28 @@ function materio_administration_menu_default_menu_links() {
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
'parent_identifier' => 'navigation_ajouter-du-contenu:node/add',
|
||||
'parent_identifier' => 'navigation_add-content:node/add',
|
||||
);
|
||||
// Exported menu link: navigation_onthologie:admin/structure/taxonomy_manager/voc/onthologie
|
||||
$menu_links['navigation_onthologie:admin/structure/taxonomy_manager/voc/onthologie'] = array(
|
||||
'menu_name' => 'navigation',
|
||||
'link_path' => 'admin/structure/taxonomy_manager/voc/onthologie',
|
||||
'router_path' => 'admin/structure/taxonomy_manager/voc/%',
|
||||
'router_path' => 'admin/structure',
|
||||
'link_title' => 'Onthologie',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
'identifier' => 'navigation_onthologie:admin/structure/taxonomy_manager/voc/onthologie',
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => 0,
|
||||
'hidden' => 1,
|
||||
'external' => 0,
|
||||
'has_children' => 0,
|
||||
'expanded' => 0,
|
||||
'weight' => 0,
|
||||
'customized' => 0,
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 0,
|
||||
'parent_identifier' => 'navigation_taxonomy:admin/structure/taxonomy_manager/voc',
|
||||
'menu_links_customized' => 1,
|
||||
'parent_identifier' => 'navigation_taxonomy-manager:admin/structure/taxonomy_manager/voc',
|
||||
);
|
||||
// Exported menu link: navigation_orders:admin/store/orders/view
|
||||
$menu_links['navigation_orders:admin/store/orders/view'] = array(
|
||||
@ -358,7 +358,7 @@ function materio_administration_menu_default_menu_links() {
|
||||
'external' => 1,
|
||||
'has_children' => 1,
|
||||
'expanded' => 0,
|
||||
'weight' => 0,
|
||||
'weight' => -36,
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
@ -388,42 +388,22 @@ function materio_administration_menu_default_menu_links() {
|
||||
$menu_links['navigation_tag-libres:admin/structure/taxonomy_manager/voc/tag_libres'] = array(
|
||||
'menu_name' => 'navigation',
|
||||
'link_path' => 'admin/structure/taxonomy_manager/voc/tag_libres',
|
||||
'router_path' => 'admin/structure/taxonomy_manager/voc/%',
|
||||
'router_path' => 'admin/structure',
|
||||
'link_title' => 'Tag Libres',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
'identifier' => 'navigation_tag-libres:admin/structure/taxonomy_manager/voc/tag_libres',
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => 0,
|
||||
'hidden' => 1,
|
||||
'external' => 0,
|
||||
'has_children' => 1,
|
||||
'has_children' => 0,
|
||||
'expanded' => 0,
|
||||
'weight' => 8,
|
||||
'customized' => 0,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 0,
|
||||
'parent_identifier' => 'navigation_taxonomy:admin/structure/taxonomy_manager/voc',
|
||||
);
|
||||
// Exported menu link: navigation_taxonomy:admin/structure/taxonomy_manager/voc
|
||||
$menu_links['navigation_taxonomy:admin/structure/taxonomy_manager/voc'] = array(
|
||||
'menu_name' => 'navigation',
|
||||
'link_path' => 'admin/structure/taxonomy_manager/voc',
|
||||
'router_path' => 'admin/structure/taxonomy_manager/voc',
|
||||
'link_title' => 'Taxonomy',
|
||||
'options' => array(
|
||||
'attributes' => array(),
|
||||
'identifier' => 'navigation_taxonomy:admin/structure/taxonomy_manager/voc',
|
||||
),
|
||||
'module' => 'menu',
|
||||
'hidden' => 0,
|
||||
'external' => 0,
|
||||
'has_children' => 1,
|
||||
'expanded' => 0,
|
||||
'weight' => -47,
|
||||
'customized' => 1,
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
'parent_identifier' => 'navigation_taxonomy-manager:admin/structure/taxonomy_manager/voc',
|
||||
);
|
||||
// Exported menu link: navigation_user-account:user
|
||||
$menu_links['navigation_user-account:user'] = array(
|
||||
@ -486,6 +466,7 @@ function materio_administration_menu_default_menu_links() {
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Add user');
|
||||
@ -506,11 +487,9 @@ function materio_administration_menu_default_menu_links() {
|
||||
t('Store');
|
||||
t('Subscriptions newsletter');
|
||||
t('Tag Libres');
|
||||
t('Taxonomy');
|
||||
t('User account');
|
||||
t('Users');
|
||||
t('customers');
|
||||
|
||||
|
||||
return $menu_links;
|
||||
}
|
||||
|
@ -186,7 +186,9 @@ function materio_administration_user_default_permissions() {
|
||||
// Exported permission: 'show workflow state form'.
|
||||
$permissions['show workflow state form'] = array(
|
||||
'name' => 'show workflow state form',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'workflow',
|
||||
);
|
||||
|
||||
|
@ -17,6 +17,8 @@ dependencies[] = menu
|
||||
dependencies[] = role_delegation
|
||||
dependencies[] = simplenews
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = taxonomy_csv
|
||||
dependencies[] = taxonomy_wrangler
|
||||
dependencies[] = title
|
||||
dependencies[] = views
|
||||
dependencies[] = views_bulk_operations
|
||||
@ -51,7 +53,6 @@ features[menu_links][] = navigation_shopping-cart:cart
|
||||
features[menu_links][] = navigation_store:http://www.materio.com/fr/admin/store
|
||||
features[menu_links][] = navigation_subscriptions-newsletter:admin/people/simplenews
|
||||
features[menu_links][] = navigation_tag-libres:admin/structure/taxonomy_manager/voc/tag_libres
|
||||
features[menu_links][] = navigation_taxonomy:admin/structure/taxonomy_manager/voc
|
||||
features[menu_links][] = navigation_user-account:user
|
||||
features[menu_links][] = navigation_users:admin/people
|
||||
features[menu_links][] = navigation_users:admin/users
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -10,27 +10,6 @@
|
||||
function materio_content_types_field_default_field_bases() {
|
||||
$field_bases = array();
|
||||
|
||||
// Exported field_base: 'description_field'
|
||||
$field_bases['description_field'] = array(
|
||||
'active' => 1,
|
||||
'cardinality' => 1,
|
||||
'deleted' => 0,
|
||||
'entity_types' => array(),
|
||||
'field_name' => 'description_field',
|
||||
'indexes' => array(
|
||||
'format' => array(
|
||||
0 => 'format',
|
||||
),
|
||||
),
|
||||
'locked' => 0,
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
),
|
||||
'translatable' => 1,
|
||||
'type' => 'text_with_summary',
|
||||
);
|
||||
|
||||
// Exported field_base: 'field_attachments'
|
||||
$field_bases['field_attachments'] = array(
|
||||
'active' => 1,
|
||||
@ -778,6 +757,7 @@ $entity_field[0][\'value\'] = format_date($entity->created, \'breves\');',
|
||||
0 => array(
|
||||
'vocabulary' => 'tag_libres',
|
||||
'parent' => 0,
|
||||
'depth' => '',
|
||||
),
|
||||
),
|
||||
'entity_translation_sync' => FALSE,
|
||||
|
@ -628,8 +628,13 @@ function materio_content_types_field_default_field_instances() {
|
||||
'module' => 'autocomplete_deluxe',
|
||||
'settings' => array(
|
||||
'autocomplete_deluxe_path' => 'autocomplete_deluxe/taxonomy',
|
||||
'content_taxonomy_autocomplete_new_terms' => 'allow',
|
||||
'content_taxonomy_autocomplete_new_terms' => 'deny',
|
||||
'delimiter' => '',
|
||||
'limit' => 10,
|
||||
'min_length' => 0,
|
||||
'not_found_message' => 'The term \'@term\' will be added.',
|
||||
'size' => 60,
|
||||
'use_synonyms' => 0,
|
||||
),
|
||||
'type' => 'autocomplete_deluxe_taxonomy',
|
||||
'weight' => 20,
|
||||
@ -3542,7 +3547,8 @@ function materio_content_types_field_default_field_instances() {
|
||||
'bundle' => 'materiau',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'description' => '<b>/!\\ Attention</b> VOus ne pouvez pas ajouter de nouveaux tag ici.<br/>
|
||||
Vous devez avant d\'utiliser un nouveau tag le créer <a href="/admin/structure/taxonomy/tag_libres/add"><b>ici</b></a>',
|
||||
'display' => array(
|
||||
'bookmark' => array(
|
||||
'label' => 'above',
|
||||
@ -3610,13 +3616,15 @@ function materio_content_types_field_default_field_instances() {
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'autocomplete_deluxe',
|
||||
'module' => 'synonyms',
|
||||
'settings' => array(
|
||||
'autocomplete_deluxe_path' => 'autocomplete_deluxe/taxonomy',
|
||||
'content_taxonomy_autocomplete_new_terms' => 'allow',
|
||||
'auto_creation' => 0,
|
||||
'autocomplete_path' => 'synonyms/autocomplete',
|
||||
'size' => 60,
|
||||
'suggest_only_unique' => 0,
|
||||
'suggestion_size' => 10,
|
||||
),
|
||||
'type' => 'autocomplete_deluxe_taxonomy',
|
||||
'type' => 'synonyms_autocomplete',
|
||||
'weight' => 23,
|
||||
),
|
||||
);
|
||||
@ -4676,82 +4684,6 @@ function materio_content_types_field_default_field_instances() {
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'taxonomy_term-tag_libres-description_field'
|
||||
$field_instances['taxonomy_term-tag_libres-description_field'] = array(
|
||||
'bundle' => 'tag_libres',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 2,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'taxonomy_term',
|
||||
'field_name' => 'description_field',
|
||||
'label' => 'Description',
|
||||
'required' => FALSE,
|
||||
'settings' => array(
|
||||
'display_summary' => 0,
|
||||
'entity_translation_sync' => FALSE,
|
||||
'hide_label' => array(
|
||||
'entity' => FALSE,
|
||||
'page' => 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' => 1,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'taxonomy_term-tag_libres-name_field'
|
||||
$field_instances['taxonomy_term-tag_libres-name_field'] = array(
|
||||
'bundle' => 'tag_libres',
|
||||
'default_value' => NULL,
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 1,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'taxonomy_term',
|
||||
'field_name' => 'name_field',
|
||||
'label' => 'Nom',
|
||||
'required' => TRUE,
|
||||
'settings' => array(
|
||||
'entity_translation_sync' => FALSE,
|
||||
'hide_label' => array(
|
||||
'entity' => FALSE,
|
||||
'page' => FALSE,
|
||||
),
|
||||
'text_processing' => 0,
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'module' => 'text',
|
||||
'settings' => array(
|
||||
'size' => 60,
|
||||
),
|
||||
'type' => 'text_textfield',
|
||||
'weight' => -5,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'taxonomy_term-tag_libres-synonyms_synonym'
|
||||
$field_instances['taxonomy_term-tag_libres-synonyms_synonym'] = array(
|
||||
'bundle' => 'tag_libres',
|
||||
@ -4789,6 +4721,8 @@ function materio_content_types_field_default_field_instances() {
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('"http://" will be added automaticly.');
|
||||
t('<b>/!\\ Attention</b> VOus ne pouvez pas ajouter de nouveaux tag ici.<br/>
|
||||
Vous devez avant d\'utiliser un nouveau tag le créer <a href="/admin/structure/taxonomy/tag_libres/add"><b>ici</b></a>');
|
||||
t('A field replacing node title.');
|
||||
t('A field replacing taxonomy term name.');
|
||||
t('Adresse');
|
||||
|
@ -23,7 +23,7 @@ function materio_content_types_taxonomy_default_vocabularies() {
|
||||
'name' => 'Ontologie',
|
||||
'machine_name' => 'onthologie',
|
||||
'description' => '',
|
||||
'hierarchy' => 1,
|
||||
'hierarchy' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'weight' => -10,
|
||||
'language' => 'und',
|
||||
@ -32,7 +32,7 @@ function materio_content_types_taxonomy_default_vocabularies() {
|
||||
'tag_libres' => array(
|
||||
'name' => 'Tag libres',
|
||||
'machine_name' => 'tag_libres',
|
||||
'description' => '',
|
||||
'description' => 'First create the english tag, then translate it.',
|
||||
'hierarchy' => 0,
|
||||
'module' => 'taxonomy',
|
||||
'weight' => -9,
|
||||
|
@ -272,7 +272,10 @@ function materio_content_types_user_default_permissions() {
|
||||
// Exported permission: 'edit field_famille'.
|
||||
$permissions['edit field_famille'] = array(
|
||||
'name' => 'edit field_famille',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
@ -425,7 +428,10 @@ function materio_content_types_user_default_permissions() {
|
||||
// Exported permission: 'edit own field_famille'.
|
||||
$permissions['edit own field_famille'] = array(
|
||||
'name' => 'edit own field_famille',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'field_permissions',
|
||||
);
|
||||
|
||||
|
@ -26,6 +26,7 @@ dependencies[] = options
|
||||
dependencies[] = print
|
||||
dependencies[] = print_ui
|
||||
dependencies[] = strongarm
|
||||
dependencies[] = synonyms
|
||||
dependencies[] = taxonomy
|
||||
dependencies[] = term_reference_tree
|
||||
dependencies[] = text
|
||||
@ -39,7 +40,6 @@ features[ctools][] = field_group:field_group:1
|
||||
features[ctools][] = strongarm:strongarm:1
|
||||
features[ctools][] = views:views_default:3.0
|
||||
features[features_api][] = api:2
|
||||
features[field_base][] = description_field
|
||||
features[field_base][] = field_attachments
|
||||
features[field_base][] = field_authored_on
|
||||
features[field_base][] = field_bandeau
|
||||
@ -182,8 +182,6 @@ features[field_instance][] = taxonomy_term-company-synonyms_synonym
|
||||
features[field_instance][] = taxonomy_term-onthologie-field_used_on_advanced_search
|
||||
features[field_instance][] = taxonomy_term-onthologie-name_field
|
||||
features[field_instance][] = taxonomy_term-onthologie-synonyms_synonym
|
||||
features[field_instance][] = taxonomy_term-tag_libres-description_field
|
||||
features[field_instance][] = taxonomy_term-tag_libres-name_field
|
||||
features[field_instance][] = taxonomy_term-tag_libres-synonyms_synonym
|
||||
features[image][] = card-big
|
||||
features[image][] = card-full
|
||||
@ -338,6 +336,29 @@ features[variable][] = nodeformscols_field_placements_materiau_default
|
||||
features[variable][] = nodeformscols_field_placements_page_default
|
||||
features[variable][] = nodeformscols_field_placements_simplenews_default
|
||||
features[variable][] = nodeformscols_field_placements_webform_default
|
||||
features[variable][] = pathauto_node_breve_en_pattern
|
||||
features[variable][] = pathauto_node_breve_fr_pattern
|
||||
features[variable][] = pathauto_node_breve_pattern
|
||||
features[variable][] = pathauto_node_breve_und_pattern
|
||||
features[variable][] = pathauto_node_company_en_pattern
|
||||
features[variable][] = pathauto_node_company_fr_pattern
|
||||
features[variable][] = pathauto_node_company_pattern
|
||||
features[variable][] = pathauto_node_company_und_pattern
|
||||
features[variable][] = pathauto_node_materiau_en_pattern
|
||||
features[variable][] = pathauto_node_materiau_fr_pattern
|
||||
features[variable][] = pathauto_node_materiau_pattern
|
||||
features[variable][] = pathauto_node_materiau_und_pattern
|
||||
features[variable][] = pathauto_node_page_en_pattern
|
||||
features[variable][] = pathauto_node_page_fr_pattern
|
||||
features[variable][] = pathauto_node_page_pattern
|
||||
features[variable][] = pathauto_node_page_und_pattern
|
||||
features[variable][] = pathauto_node_webform_en_pattern
|
||||
features[variable][] = pathauto_node_webform_fr_pattern
|
||||
features[variable][] = pathauto_node_webform_pattern
|
||||
features[variable][] = pathauto_node_webform_und_pattern
|
||||
features[variable][] = pathauto_taxonomy_term_company_pattern
|
||||
features[variable][] = pathauto_taxonomy_term_onthologie_pattern
|
||||
features[variable][] = pathauto_taxonomy_term_tag_libres_pattern
|
||||
features[variable][] = print_comments
|
||||
features[variable][] = print_css
|
||||
features[variable][] = print_footer_options
|
||||
|
@ -1481,6 +1481,167 @@ function materio_content_types_strongarm() {
|
||||
$strongarm->value = 0;
|
||||
$export['node_submitted_webform'] = $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_breve_en_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_breve_en_pattern'] = $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_breve_fr_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_breve_fr_pattern'] = $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_breve_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_breve_pattern'] = $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_breve_und_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_breve_und_pattern'] = $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_company_en_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_company_en_pattern'] = $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_company_fr_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_company_fr_pattern'] = $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_company_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_company_pattern'] = $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_company_und_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_company_und_pattern'] = $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_materiau_en_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_materiau_en_pattern'] = $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_materiau_fr_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_materiau_fr_pattern'] = $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_materiau_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_materiau_pattern'] = $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_materiau_und_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_materiau_und_pattern'] = $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_page_en_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_page_en_pattern'] = $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_page_fr_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_page_fr_pattern'] = $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_page_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_page_pattern'] = $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_page_und_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_page_und_pattern'] = $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_webform_en_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_webform_en_pattern'] = $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_webform_fr_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_webform_fr_pattern'] = $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_webform_pattern';
|
||||
$strongarm->value = 'form/[node:title]';
|
||||
$export['pathauto_node_webform_pattern'] = $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_webform_und_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_node_webform_und_pattern'] = $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_taxonomy_term_company_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_taxonomy_term_company_pattern'] = $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_taxonomy_term_onthologie_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_taxonomy_term_onthologie_pattern'] = $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_taxonomy_term_tag_libres_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_taxonomy_term_tag_libres_pattern'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
|
@ -50,7 +50,7 @@ function materio_content_types_views_default_views() {
|
||||
'title' => 'title',
|
||||
);
|
||||
$handler->display->display_options['row_options']['hide_empty'] = TRUE;
|
||||
/* Champ: Contenu : Référence Materio */
|
||||
/* Field: Content: Référence Materio */
|
||||
$handler->display->display_options['fields']['field_reference_materio']['id'] = 'field_reference_materio';
|
||||
$handler->display->display_options['fields']['field_reference_materio']['table'] = 'field_data_field_reference_materio';
|
||||
$handler->display->display_options['fields']['field_reference_materio']['field'] = 'field_reference_materio';
|
||||
@ -58,7 +58,7 @@ function materio_content_types_views_default_views() {
|
||||
$handler->display->display_options['fields']['field_reference_materio']['alter']['text'] = '[field_reference_materio] ';
|
||||
$handler->display->display_options['fields']['field_reference_materio']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['field_reference_materio']['hide_empty'] = TRUE;
|
||||
/* Champ: Contenu : Titre */
|
||||
/* Field: Content: Title */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
@ -68,19 +68,19 @@ function materio_content_types_views_default_views() {
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['element_label_colon'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['link_to_node'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de publication */
|
||||
/* Sort criterion: Content: Post date */
|
||||
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
/* Filter criterion: Content: Published */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
/* Filter criterion: Content: Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
@ -130,6 +130,7 @@ function materio_content_types_views_default_views() {
|
||||
t('[field_reference_materio] '),
|
||||
t('[field_reference_materio][title]'),
|
||||
t('Entity Reference'),
|
||||
t('more'),
|
||||
);
|
||||
$export['entity_reference_materiaux_breves'] = $view;
|
||||
|
||||
|
@ -186,6 +186,7 @@ function materio_home_v2_menu_default_menu_links() {
|
||||
'language' => 'und',
|
||||
'menu_links_customized' => 1,
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Access to the online database');
|
||||
@ -194,6 +195,5 @@ function materio_home_v2_menu_default_menu_links() {
|
||||
t('Les formations');
|
||||
t('Les services sur mesure');
|
||||
|
||||
|
||||
return $menu_links;
|
||||
}
|
||||
|
@ -38,33 +38,33 @@ function materio_home_v2_views_default_views() {
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'entity';
|
||||
$handler->display->display_options['row_options']['view_mode'] = 'cardbig';
|
||||
/* Champ: Contenu : Titre */
|
||||
/* Field: Content: Title */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
/* Critère de tri: Contenu : Date de publication */
|
||||
/* Sort criterion: Content: Post date */
|
||||
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
/* Filter criterion: Content: Published */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
/* Filter criterion: Content: Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'breve' => 'breve',
|
||||
);
|
||||
/* Critère de filtrage: Processus : État actuel */
|
||||
/* Filter criterion: Workflow: Current state */
|
||||
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
||||
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
||||
@ -104,28 +104,28 @@ function materio_home_v2_views_default_views() {
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
/* Filter criterion: Content: Published */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
/* Filter criterion: Content: Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'simplenews' => 'simplenews',
|
||||
);
|
||||
/* Critère de filtrage: Processus : État actuel */
|
||||
/* Filter criterion: Workflow: Current state */
|
||||
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
||||
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['value'] = array(
|
||||
3 => '3',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Newsletter category (field_simplenews_term) */
|
||||
/* Filter criterion: Content: Newsletter category (field_simplenews_term) */
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['id'] = 'field_simplenews_term_tid';
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['table'] = 'field_data_field_simplenews_term';
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['field'] = 'field_simplenews_term_tid';
|
||||
@ -134,7 +134,7 @@ function materio_home_v2_views_default_views() {
|
||||
);
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['type'] = 'select';
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['vocabulary'] = 'newsletter';
|
||||
/* Critère de filtrage: Parution de lettre d'information : État des envois */
|
||||
/* Filter criterion: Simplenews issue: Sent status */
|
||||
$handler->display->display_options['filters']['status_1']['id'] = 'status_1';
|
||||
$handler->display->display_options['filters']['status_1']['table'] = 'simplenews_newsletter';
|
||||
$handler->display->display_options['filters']['status_1']['field'] = 'status';
|
||||
@ -170,28 +170,28 @@ function materio_home_v2_views_default_views() {
|
||||
$handler->display->display_options['defaults']['row_options'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filter_groups'] = FALSE;
|
||||
$handler->display->display_options['defaults']['filters'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
/* Filter criterion: Content: Published */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
/* Filter criterion: Content: Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'simplenews' => 'simplenews',
|
||||
);
|
||||
/* Critère de filtrage: Processus : État actuel */
|
||||
/* Filter criterion: Workflow: Current state */
|
||||
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
||||
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['value'] = array(
|
||||
3 => '3',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Newsletter category (field_simplenews_term) */
|
||||
/* Filter criterion: Content: Newsletter category (field_simplenews_term) */
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['id'] = 'field_simplenews_term_tid';
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['table'] = 'field_data_field_simplenews_term';
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['field'] = 'field_simplenews_term_tid';
|
||||
@ -200,14 +200,14 @@ function materio_home_v2_views_default_views() {
|
||||
);
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['type'] = 'select';
|
||||
$handler->display->display_options['filters']['field_simplenews_term_tid']['vocabulary'] = 'newsletter';
|
||||
/* Critère de filtrage: Parution de lettre d'information : État des envois */
|
||||
/* Filter criterion: Simplenews issue: Sent status */
|
||||
$handler->display->display_options['filters']['status_1']['id'] = 'status_1';
|
||||
$handler->display->display_options['filters']['status_1']['table'] = 'simplenews_newsletter';
|
||||
$handler->display->display_options['filters']['status_1']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status_1']['value'] = array(
|
||||
2 => '2',
|
||||
);
|
||||
/* Critère de filtrage: Contenu : Visible sur la home (field_visible_sur_la_home) */
|
||||
/* Filter criterion: Content: Visible sur la home (field_visible_sur_la_home) */
|
||||
$handler->display->display_options['filters']['field_visible_sur_la_home_value']['id'] = 'field_visible_sur_la_home_value';
|
||||
$handler->display->display_options['filters']['field_visible_sur_la_home_value']['table'] = 'field_data_field_visible_sur_la_home';
|
||||
$handler->display->display_options['filters']['field_visible_sur_la_home_value']['field'] = 'field_visible_sur_la_home_value';
|
||||
@ -234,6 +234,7 @@ function materio_home_v2_views_default_views() {
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('more'),
|
||||
t('home v2'),
|
||||
t('daily'),
|
||||
t('Daily materiO\''),
|
||||
@ -270,37 +271,37 @@ function materio_home_v2_views_default_views() {
|
||||
$handler->display->display_options['style_plugin'] = 'default';
|
||||
$handler->display->display_options['row_plugin'] = 'entity';
|
||||
$handler->display->display_options['row_options']['view_mode'] = 'homeblock';
|
||||
/* Champ: Contenu : Titre */
|
||||
/* Field: Content: Title */
|
||||
$handler->display->display_options['fields']['title']['id'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['table'] = 'node';
|
||||
$handler->display->display_options['fields']['title']['field'] = 'title';
|
||||
$handler->display->display_options['fields']['title']['label'] = '';
|
||||
$handler->display->display_options['fields']['title']['alter']['word_boundary'] = FALSE;
|
||||
$handler->display->display_options['fields']['title']['alter']['ellipsis'] = FALSE;
|
||||
/* Critère de tri: Contenu : weight (field_weight) */
|
||||
/* Sort criterion: Content: weight (field_weight) */
|
||||
$handler->display->display_options['sorts']['field_weight_value']['id'] = 'field_weight_value';
|
||||
$handler->display->display_options['sorts']['field_weight_value']['table'] = 'field_data_field_weight';
|
||||
$handler->display->display_options['sorts']['field_weight_value']['field'] = 'field_weight_value';
|
||||
/* Critère de tri: Contenu : Date de publication */
|
||||
/* Sort criterion: Content: Post date */
|
||||
$handler->display->display_options['sorts']['created']['id'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['table'] = 'node';
|
||||
$handler->display->display_options['sorts']['created']['field'] = 'created';
|
||||
$handler->display->display_options['sorts']['created']['order'] = 'DESC';
|
||||
/* Critère de filtrage: Contenu : Publié */
|
||||
/* Filter criterion: Content: Published */
|
||||
$handler->display->display_options['filters']['status']['id'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['status']['field'] = 'status';
|
||||
$handler->display->display_options['filters']['status']['value'] = 1;
|
||||
$handler->display->display_options['filters']['status']['group'] = 1;
|
||||
$handler->display->display_options['filters']['status']['expose']['operator'] = FALSE;
|
||||
/* Critère de filtrage: Contenu : Type */
|
||||
/* Filter criterion: Content: Type */
|
||||
$handler->display->display_options['filters']['type']['id'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['table'] = 'node';
|
||||
$handler->display->display_options['filters']['type']['field'] = 'type';
|
||||
$handler->display->display_options['filters']['type']['value'] = array(
|
||||
'publication' => 'publication',
|
||||
);
|
||||
/* Critère de filtrage: Processus : État actuel */
|
||||
/* Filter criterion: Workflow: Current state */
|
||||
$handler->display->display_options['filters']['sid']['id'] = 'sid';
|
||||
$handler->display->display_options['filters']['sid']['table'] = 'workflow_node';
|
||||
$handler->display->display_options['filters']['sid']['field'] = 'sid';
|
||||
@ -322,6 +323,7 @@ function materio_home_v2_views_default_views() {
|
||||
t('Trier par'),
|
||||
t('Asc'),
|
||||
t('Desc'),
|
||||
t('more'),
|
||||
t('Home v2'),
|
||||
);
|
||||
$export['publication_home_v2'] = $view;
|
||||
|
@ -23,7 +23,7 @@ function materio_publications_image_default_styles() {
|
||||
$styles['publication-couv'] = array(
|
||||
'label' => 'publication-couv',
|
||||
'effects' => array(
|
||||
16 => array(
|
||||
15 => array(
|
||||
'name' => 'image_scale',
|
||||
'data' => array(
|
||||
'width' => 480,
|
||||
|
@ -32,7 +32,9 @@ function materio_publications_user_default_permissions() {
|
||||
// Exported permission: 'delete own publication content'.
|
||||
$permissions['delete own publication content'] = array(
|
||||
'name' => 'delete own publication content',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
@ -49,7 +51,9 @@ function materio_publications_user_default_permissions() {
|
||||
// Exported permission: 'edit own publication content'.
|
||||
$permissions['edit own publication content'] = array(
|
||||
'name' => 'edit own publication content',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'node',
|
||||
);
|
||||
|
||||
|
@ -4,8 +4,8 @@ package = Materio
|
||||
dependencies[] = ctools
|
||||
dependencies[] = features
|
||||
dependencies[] = image
|
||||
dependencies[] = list
|
||||
dependencies[] = materio_content_types
|
||||
dependencies[] = materio_page_title
|
||||
dependencies[] = metatag
|
||||
dependencies[] = node
|
||||
dependencies[] = strongarm
|
||||
@ -68,4 +68,5 @@ features[workflow][] = Publication
|
||||
features[workflow_access][] = Publication
|
||||
features_exclude[dependencies][materio_subscriptions] = materio_subscriptions
|
||||
features_exclude[dependencies][options] = options
|
||||
features_exclude[dependencies][materio_page_title] = materio_page_title
|
||||
project path = sites/all/modules/features
|
||||
|
@ -185,7 +185,9 @@ function materio_subscriptions_user_default_permissions() {
|
||||
// Exported permission: 'delete payments'.
|
||||
$permissions['delete payments'] = array(
|
||||
'name' => 'delete payments',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_payment',
|
||||
);
|
||||
|
||||
@ -219,7 +221,9 @@ function materio_subscriptions_user_default_permissions() {
|
||||
// Exported permission: 'manual payments'.
|
||||
$permissions['manual payments'] = array(
|
||||
'name' => 'manual payments',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_payment',
|
||||
);
|
||||
|
||||
@ -280,7 +284,10 @@ function materio_subscriptions_user_default_permissions() {
|
||||
// Exported permission: 'view payments'.
|
||||
$permissions['view payments'] = array(
|
||||
'name' => 'view payments',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'administrator' => 'administrator',
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'uc_payment',
|
||||
);
|
||||
|
||||
|
@ -73,6 +73,7 @@ features[user_role][] = Adhérent
|
||||
features[user_role][] = Premium
|
||||
features[user_role][] = Utilisateur
|
||||
features[variable][] = date_format_uc_store
|
||||
features[variable][] = pathauto_taxonomy_term_catalog_pattern
|
||||
features[variable][] = uc_add_item_redirect
|
||||
features[variable][] = uc_address_fields
|
||||
features[variable][] = uc_address_fields_required
|
||||
|
@ -17,6 +17,13 @@ function materio_subscriptions_strongarm() {
|
||||
$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 = 'pathauto_taxonomy_term_catalog_pattern';
|
||||
$strongarm->value = '';
|
||||
$export['pathauto_taxonomy_term_catalog_pattern'] = $strongarm;
|
||||
|
||||
$strongarm = new stdClass();
|
||||
$strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */
|
||||
$strongarm->api_version = 1;
|
||||
|
@ -13,7 +13,9 @@ function materio_user_import_user_default_permissions() {
|
||||
// Exported permission: 'import users'.
|
||||
$permissions['import users'] = array(
|
||||
'name' => 'import users',
|
||||
'roles' => array(),
|
||||
'roles' => array(
|
||||
'root' => 'root',
|
||||
),
|
||||
'module' => 'user_import',
|
||||
);
|
||||
|
||||
|
@ -1140,5 +1140,4 @@ gonflé,gonflé
|
||||
boeing,boeing
|
||||
crayon,crayon
|
||||
fruhstuck7,fruhstuck7
|
||||
fruhstuck7,
|
||||
fruhstuck8,fruhstuck8
|
||||
|
|
@ -1140,5 +1140,4 @@ gonflé,gonflé
|
||||
boeing,boeing
|
||||
crayon,crayon
|
||||
fruhstuck7,fruhstuck7
|
||||
,fruhstuck7
|
||||
fruhstuck8,fruhstuck8
|
||||
|
|
@ -22,9 +22,7 @@
|
||||
/**
|
||||
* Implements hook_views_api().
|
||||
*/
|
||||
/*
|
||||
TODO hook_views_api().
|
||||
*/
|
||||
// TODO hook_views_api().
|
||||
// function tode_views_api() {
|
||||
// return array(
|
||||
// 'api' => 3,
|
||||
@ -103,9 +101,7 @@ function tode_field_widget_settings_form($field, $instance){
|
||||
'#description' => t('Defines how many characters can be typed into the text field. For values higher than 255, remember that one term name can not be longer than 255 (would be cutted).'),
|
||||
);
|
||||
|
||||
/*
|
||||
TODO complete the all flow of this
|
||||
*/
|
||||
// TODO complete the all flow of this
|
||||
$form['show_term_form'] = array(
|
||||
'#type' => 'checkbox',
|
||||
'#title' => t('Show taxonomy term edit form ?'),
|
||||
@ -551,315 +547,8 @@ function tode_node_presave($node) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
TODO merge two terms when translation is made by selecting a node whiche already exists
|
||||
*/
|
||||
|
||||
/*
|
||||
TODO create a node when a term is created else where than the node which got the tode
|
||||
*/
|
||||
|
||||
/**
|
||||
* Implements hook_menu().
|
||||
*/
|
||||
function tode_menu() {
|
||||
// dsm('tode_menu');
|
||||
$items = array();
|
||||
|
||||
$items['tode/%ctools_js/add'] = array(
|
||||
'title' => 'Tode modal add entity',
|
||||
'page callback' => 'tode_entity_add',
|
||||
'page arguments' => array(1,3,4,5),
|
||||
'access callback' => TRUE,
|
||||
'type' => MENU_CALLBACK,
|
||||
);
|
||||
|
||||
return $items;
|
||||
}
|
||||
|
||||
function tode_entity_add($js = FALSE, $bundle, $entity, $title = 'Title'){
|
||||
|
||||
// Fall back if $js is not set.
|
||||
if (!$js) {
|
||||
return drupal_get_form('tode_entity_add_form', $bundle, $entity);
|
||||
}
|
||||
|
||||
ctools_include('modal');
|
||||
ctools_include('ajax');
|
||||
$form_state = array(
|
||||
'title' => t('Create '.$entity),
|
||||
'ajax' => TRUE,
|
||||
'build_info' => array('args' => array('0' => $bundle, '1' => $entity, '2' => $title)),
|
||||
);
|
||||
$output = ctools_modal_form_wrapper('tode_entity_add_form', $form_state);
|
||||
|
||||
if (!empty($form_state['executed'])) {
|
||||
$commands = array();
|
||||
$commands[] = ctools_modal_command_dismiss();
|
||||
print ajax_render($commands);
|
||||
exit;
|
||||
}
|
||||
else {
|
||||
print ajax_render($output);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
function tode_entity_add_form($form, $form_state, $bundle, $entity, $title) {
|
||||
|
||||
$form = array();
|
||||
$form['title'] = array(
|
||||
'#type' => 'textfield',
|
||||
'#title' => t($title),
|
||||
'#size' => 40,
|
||||
'#maxlength' => 255,
|
||||
);
|
||||
$form['bundle'] = array(
|
||||
'#type' => 'hidden',
|
||||
'#value' => $bundle,
|
||||
);
|
||||
$form['entity'] = array(
|
||||
'#type' => 'hidden',
|
||||
'#value' => $entity,
|
||||
);
|
||||
|
||||
$form['create'] = array(
|
||||
'#type' => 'submit',
|
||||
'#value' => t('Create'),
|
||||
);
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
function tode_entity_add_form_validate($form, &$form_state){
|
||||
|
||||
if(empty($form_state['values']['title'])){
|
||||
form_set_error('title', 'Title field can\'t be empty!');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function tode_entity_add_form_submit($form, &$form_state){
|
||||
global $user;
|
||||
// dsm($form_state, '$form_state');
|
||||
$values = $form_state['values'];
|
||||
$bundle_fields = field_info_instances($values['bundle']);
|
||||
// dsm($bundle_fields, '$bundle_fields');
|
||||
|
||||
$fields = $bundle_fields[$values['entity']];
|
||||
// dsm($fields, '$fields');
|
||||
|
||||
foreach ($fields as $field_name => $field) {
|
||||
if($field['widget']['type'] == 'tode'){
|
||||
$tode_field = $field;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
# get vocabulary
|
||||
$tode_field_infos = field_info_field($field['field_name']);
|
||||
// dsm($tode_field_infos, '$tode_field_infos');
|
||||
$voc_name = $tode_field_infos['settings']['allowed_values'][0]['vocabulary'];
|
||||
$vocabulary = taxonomy_vocabulary_machine_name_load($voc_name);
|
||||
// dsm($vocabulary, '$vocabulary');
|
||||
|
||||
# create the term
|
||||
$term = new stdClass();
|
||||
$term->name = $values['title'];
|
||||
$term->vid = $vocabulary->vid; // ‘1’ is a vocabulary id you wish this term to assign to
|
||||
// $term->field_custom_field_name[LANGUAGE_NONE][0]['value'] = ‘Some value’; // OPTIONAL. If your term has a custom field attached it can added as simple as this
|
||||
taxonomy_term_save($term); // Finally, save our term
|
||||
// dsm($term, '$term');
|
||||
|
||||
# create the node
|
||||
//http://www.group42.ca/creating_and_updating_nodes_programmatically_in_drupal_7
|
||||
//http://timonweb.com/how-programmatically-create-nodes-comments-and-taxonomies-drupal-7
|
||||
$node = new stdClass();
|
||||
$node->type = $values['entity'];
|
||||
node_object_prepare($node);
|
||||
$tode_field_name = $tode_field['field_name'];
|
||||
$node = (array)$node +array(
|
||||
"title" => $values['title'],
|
||||
"language" => LANGUAGE_NONE,
|
||||
"uid" => $user->uid,
|
||||
$tode_field_name => array( LANGUAGE_NONE => array(0 => array('tid' => $term->tid))),
|
||||
);
|
||||
|
||||
|
||||
// $node->$tode_field_name[$node->language]['tid'] = $term->tid;
|
||||
// $node->$tode_field_name = array( $node->language => array('tid' => $term->tid));
|
||||
|
||||
// $tode_field_name = $tode_field['field_name'];
|
||||
// $node = (object) array(
|
||||
// "type" => $values['entity'],
|
||||
// // node_object_prepare($node);
|
||||
// "title" => $values['title'],
|
||||
// "language" => LANGUAGE_NONE,
|
||||
// "uid" => $user->uid,
|
||||
// $tode_field_name => array( LANGUAGE_NONE=>array('tid' => $term->tid)),
|
||||
// );
|
||||
$node = (object)$node;
|
||||
|
||||
// dsm($node, '$node');
|
||||
node_save($node);
|
||||
// dsm($node, '$node');
|
||||
|
||||
|
||||
# tag the node with the term
|
||||
|
||||
# set the tode field to the term tid
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
function BAD_ONE_tode_entity_add_form($js = FALSE, $bundle, $entity) {
|
||||
// dsm('- - - - tode_entity_add_form');
|
||||
// dsm($bundle, '$bundle');
|
||||
// dsm($entity, '$entity');
|
||||
|
||||
// error_log($js);
|
||||
// error_log($bundle);
|
||||
// error_log($entity);
|
||||
//
|
||||
|
||||
global $user;
|
||||
|
||||
//module_load_include('inc', 'node', 'node.pages');
|
||||
ctools_include('node.pages', 'node', '');
|
||||
|
||||
$node = (object) array(
|
||||
'uid' => $user->uid,
|
||||
'name' => (isset($user->name) ? $user->name : ''),
|
||||
'type' => $entity,
|
||||
'language' => LANGUAGE_NONE
|
||||
);
|
||||
|
||||
$form_id = $entity.'_node_form';
|
||||
|
||||
if (!$js) {
|
||||
return drupal_get_form($form_id, $node);
|
||||
}
|
||||
|
||||
ctools_include('modal');
|
||||
ctools_include('ajax');
|
||||
|
||||
$form_state = array(
|
||||
'title' => t('Add '.$entity),
|
||||
'ajax' => TRUE,
|
||||
);
|
||||
|
||||
$form_state['build_info']['args'] = array($node);
|
||||
|
||||
$output = ctools_modal_form_wrapper($entity.'_node_form', $form_state);
|
||||
|
||||
if (!empty($form_state['executed'])) {
|
||||
$output = array();
|
||||
$output[] = ctools_modal_command_display( t('Node created'), '<div class="modal-message">'.$entity.' creation successful.</div>'); /** Add success message*/
|
||||
};
|
||||
|
||||
print ajax_render($output);
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Implements hook_field_widget_form_alter().
|
||||
*
|
||||
* add create entity bundle front of term reference field with tode voc
|
||||
*/
|
||||
function DESACTIVATED_tode_field_widget_form_alter(&$element, &$form_state, $context) {
|
||||
$field = $context['field'];
|
||||
$instance = $context['instance'];
|
||||
|
||||
if($field['type'] == 'taxonomy_term_reference' && ($instance['widget']['type'] == 'taxonomy_autocomplete' || $instance['widget']['type'] == 'autocomplete_deluxe_taxonomy')){
|
||||
// dsm('- - - - - tode_field_widget_form_alter');
|
||||
// dsm($element, '$element');
|
||||
// dsm($form_state, '$form_state');
|
||||
// dsm($context, '$context');
|
||||
// dsm($instance['widget']['type'], '$instance[widget][type]');
|
||||
|
||||
foreach ($field['settings']['allowed_values'] as $key => $value) {
|
||||
|
||||
if($tode = _tode_get_voc_tode_field_def($value['vocabulary'])){
|
||||
|
||||
ctools_include('ajax');
|
||||
ctools_include('modal');
|
||||
ctools_modal_add_js();
|
||||
|
||||
// ctools_add_css('tode', 'tode');
|
||||
// drupal_add_css(drupal_get_path('module', 'tode') . "tode.css");
|
||||
// dsm($tode, '$tode');
|
||||
$type_fields = field_info_instances('node');
|
||||
|
||||
|
||||
if(!isset($element['#attributes']["class"]))
|
||||
$element['#attributes']["class"] = array();
|
||||
|
||||
$element['#attributes']["class"][] = "tode-add-modal";
|
||||
|
||||
$element['#suffix'] = '';
|
||||
foreach ($tode['bundles'] as $bundle => $entities) {
|
||||
foreach ($entities as $entity) {
|
||||
$tode_instance = $type_fields[$entity][$tode['field_name']];
|
||||
|
||||
$btn = ctools_modal_text_button(t('create a new %s', array('%s'=>$entity)), 'tode/nojs/add/'.$bundle.'/'.$entity.'/'.$tode_instance['label'], t('alt'), "button ctools-modal-tode-add-modal") . "\n"; // modal-popup-small
|
||||
// $btn .= ctools_modal_text_button(t('create new test'), 'tode/nojs/add/node/test', t('alt'));
|
||||
// dsm($btn);
|
||||
if($element['#suffix'] == '')
|
||||
$element['#suffix'] = '<div class="tode-add-modal-links">';
|
||||
|
||||
$element['#suffix'] .= $btn;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if( isset($element['#suffix']) && $element['#suffix'] != '' ){
|
||||
|
||||
$throbber = theme('image', array('path' => ctools_image_path('loading_animation.gif', 'modal_forms'), 'alt' => t('Loading...'), 'title' => t('Loading')));
|
||||
$js_settings = array(
|
||||
'tode-add-modal' => array(
|
||||
'modalSize' => array(
|
||||
'type' => 'fixed',
|
||||
'width' => 500,
|
||||
'height' => 200,
|
||||
),
|
||||
'modalOptions' => array(
|
||||
'opacity' => 0.4,
|
||||
'background' => '#000',
|
||||
),
|
||||
'animation' => 'fadeIn',
|
||||
// 'modalTheme' => 'ModalFormsPopup',
|
||||
'throbber' => $throbber,
|
||||
'closeText' => t('Close'),
|
||||
),
|
||||
);
|
||||
|
||||
drupal_add_js($js_settings, 'setting');
|
||||
|
||||
$element['#prefix'] = '<div class="tode-add-modal-wrapper">';
|
||||
$element['#suffix'] .= '</div></div>';
|
||||
}
|
||||
|
||||
// dsm($element, '$element');
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Implements hook_taxonomy_term_insert().
|
||||
*/
|
||||
// function tode_taxonomy_term_insert($term) {
|
||||
// dsm($term, '$term');
|
||||
// }
|
||||
|
||||
|
||||
// TODO merge two terms when translation is made by selecting a node whiche already exists
|
||||
// TODO create a node when a term is created else where than the node which got the tode
|
||||
|
||||
/**
|
||||
* Implementation of hook_form_alter().
|
||||
@ -886,7 +575,6 @@ function tode_form_alter(&$form, $form_state, $form_id){
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function _tode_node_delete_form_alter(&$form, $form_state){
|
||||
@ -950,9 +638,7 @@ function _tode_populate_terms_node_delete(&$terms, $tode_field){
|
||||
function _tode_node_delete_prepare_form(&$form, $terms){
|
||||
|
||||
if(count($terms)){
|
||||
/*
|
||||
TODO add here a checkbox to select terms to delete
|
||||
*/
|
||||
// TODO add here a checkbox to select terms to delete
|
||||
#add some warning in form description
|
||||
$form['description']['#markup'] .= '<br />'.t('this will also delete taxonomy terms : %terms', array('%terms'=>implode(', ', $terms['names'])));
|
||||
|
||||
@ -1319,6 +1005,3 @@ function tode_get_nids_from_term($term, $language = false){
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user