Explorar o código

features : Materio content type

Bachir Soussi Chiadmi %!s(int64=9) %!d(string=hai) anos
pai
achega
9f3444676a

+ 31 - 0
materio_content_types/materio_content_types.features.field_base.inc

@@ -844,6 +844,37 @@ $entity_field[0][\'value\'] = format_date($entity->created, \'breves\');',
     'type' => 'taxonomy_term_reference',
   );
 
+  // Exported field_base: 'field_used_on_advanced_search'
+  $field_bases['field_used_on_advanced_search'] = array(
+    'active' => 1,
+    'cardinality' => 1,
+    'deleted' => 0,
+    'entity_types' => array(),
+    'field_name' => 'field_used_on_advanced_search',
+    'field_permissions' => array(
+      'type' => 2,
+    ),
+    'foreign keys' => array(),
+    'indexes' => array(
+      'value' => array(
+        0 => 'value',
+      ),
+    ),
+    'locked' => 0,
+    'module' => 'list',
+    'settings' => array(
+      'allowed_values' => array(
+        0 => 0,
+        1 => 1,
+      ),
+      'allowed_values_function' => '',
+      'entity_translation_sync' => FALSE,
+      'profile2_private' => FALSE,
+    ),
+    'translatable' => 0,
+    'type' => 'list_boolean',
+  );
+
   // Exported field_base: 'field_video_filter'
   $field_bases['field_video_filter'] = array(
     'active' => 1,

+ 45 - 8
materio_content_types/materio_content_types.features.field_instance.inc

@@ -3517,9 +3517,8 @@ function materio_content_types_field_default_field_instances() {
       ),
       'default' => array(
         'label' => 'above',
-        'module' => 'computed_field',
         'settings' => array(),
-        'type' => 'computed_field_plain',
+        'type' => 'hidden',
         'weight' => 24,
       ),
       'print' => array(
@@ -3530,9 +3529,8 @@ function materio_content_types_field_default_field_instances() {
       ),
       'teaser' => array(
         'label' => 'hidden',
-        'module' => 'computed_field',
         'settings' => array(),
-        'type' => 'computed_field_unsanitized',
+        'type' => 'hidden',
         'weight' => 3,
       ),
     ),
@@ -3999,6 +3997,44 @@ function materio_content_types_field_default_field_instances() {
     ),
   );
 
+  // Exported field_instance: 'taxonomy_term-onthologie-field_used_on_advanced_search'
+  $field_instances['taxonomy_term-onthologie-field_used_on_advanced_search'] = array(
+    'bundle' => 'onthologie',
+    'default_value' => array(
+      0 => array(
+        'value' => 0,
+      ),
+    ),
+    'deleted' => 0,
+    'description' => '',
+    'display' => array(
+      'default' => array(
+        'label' => 'inline',
+        'module' => 'list',
+        'settings' => array(),
+        'type' => 'list_default',
+        'weight' => 0,
+      ),
+    ),
+    'entity_type' => 'taxonomy_term',
+    'field_name' => 'field_used_on_advanced_search',
+    'label' => 'Display term on advanced search.',
+    'required' => 0,
+    'settings' => array(
+      'entity_translation_sync' => FALSE,
+      'user_register_form' => FALSE,
+    ),
+    'widget' => array(
+      'active' => 1,
+      'module' => 'options',
+      'settings' => array(
+        'display_label' => 1,
+      ),
+      'type' => 'options_onoff',
+      'weight' => 1,
+    ),
+  );
+
   // Exported field_instance: 'taxonomy_term-onthologie-name_field'
   $field_instances['taxonomy_term-onthologie-name_field'] = array(
     'bundle' => 'onthologie',
@@ -4010,7 +4046,7 @@ function materio_content_types_field_default_field_instances() {
         'label' => 'above',
         'settings' => array(),
         'type' => 'hidden',
-        'weight' => 1,
+        'weight' => 3,
       ),
       'search_index' => array(
         'label' => 'hidden',
@@ -4039,7 +4075,7 @@ function materio_content_types_field_default_field_instances() {
         'size' => 60,
       ),
       'type' => 'text_textfield',
-      'weight' => -5,
+      'weight' => 0,
     ),
   );
 
@@ -4055,7 +4091,7 @@ function materio_content_types_field_default_field_instances() {
         'module' => 'text',
         'settings' => array(),
         'type' => 'text_default',
-        'weight' => 0,
+        'weight' => 1,
       ),
       'search_index' => array(
         'label' => 'hidden',
@@ -4081,7 +4117,7 @@ function materio_content_types_field_default_field_instances() {
         'size' => 60,
       ),
       'type' => 'text_textfield',
-      'weight' => 31,
+      'weight' => 5,
     ),
   );
 
@@ -4167,6 +4203,7 @@ function materio_content_types_field_default_field_instances() {
   t('Brève(s) liée(s)');
   t('Department');
   t('Description');
+  t('Display term on advanced search.');
   t('Distributor');
   t('Email');
   t('Famille');

+ 0 - 16
materio_content_types/materio_content_types.features.user_permission.inc

@@ -552,22 +552,6 @@ function materio_content_types_user_default_permissions() {
     'module' => 'materio_page_title',
   );
 
-  // Exported permission: 'show panel title'.
-  $permissions['show panel title'] = array(
-    'name' => 'show panel title',
-    'roles' => array(
-      'Adhérent' => 'Adhérent',
-      'Student' => 'Student',
-      'Unverified' => 'Unverified',
-      'Utilisateur' => 'Utilisateur',
-      'Utilisateur test UC' => 'Utilisateur test UC',
-      'administrator' => 'administrator',
-      'anonymous user' => 'anonymous user',
-      'root' => 'root',
-    ),
-    'module' => 'materio_page_title',
-  );
-
   // Exported permission: 'show webform title'.
   $permissions['show webform title'] = array(
     'name' => 'show webform title',

+ 2 - 1
materio_content_types/materio_content_types.info

@@ -59,6 +59,7 @@ features[field_base][] = field_reference_materio
 features[field_base][] = field_source
 features[field_base][] = field_tags_libres
 features[field_base][] = field_tode_company
+features[field_base][] = field_used_on_advanced_search
 features[field_base][] = field_video_filter
 features[field_base][] = field_visuel
 features[field_base][] = field_website
@@ -162,6 +163,7 @@ features[field_instance][] = node-page-title_field
 features[field_instance][] = node-webform-body
 features[field_instance][] = node-webform-title_field
 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-name_field
@@ -232,7 +234,6 @@ features[user_permission][] = show breve title
 features[user_permission][] = show company title
 features[user_permission][] = show materiau title
 features[user_permission][] = show page title
-features[user_permission][] = show panel title
 features[user_permission][] = show webform title
 features[user_permission][] = view field_attachments
 features[user_permission][] = view field_company

+ 25 - 0
materio_content_types/materio_content_types.strongarm.inc

@@ -186,6 +186,15 @@ function materio_content_types_strongarm() {
       'diff_standard' => array(
         'custom_settings' => FALSE,
       ),
+      'email_plain' => array(
+        'custom_settings' => FALSE,
+      ),
+      'email_html' => array(
+        'custom_settings' => FALSE,
+      ),
+      'email_textalt' => array(
+        'custom_settings' => FALSE,
+      ),
     ),
     'extra_fields' => array(
       'form' => array(
@@ -248,6 +257,14 @@ function materio_content_types_strongarm() {
             'weight' => '-99',
             'visible' => TRUE,
           ),
+          'default' => array(
+            'weight' => '-99',
+            'visible' => FALSE,
+          ),
+          'teaser' => array(
+            'weight' => '-99',
+            'visible' => FALSE,
+          ),
         ),
         'workflow' => array(
           'cardmedium' => array(
@@ -262,6 +279,14 @@ function materio_content_types_strongarm() {
             'weight' => '99',
             'visible' => FALSE,
           ),
+          'default' => array(
+            'weight' => '99',
+            'visible' => FALSE,
+          ),
+          'teaser' => array(
+            'weight' => '99',
+            'visible' => FALSE,
+          ),
         ),
       ),
     ),