Browse Source

fixed mandatory address field on company nodes. + added node_modules to .gitignore

Bachir Soussi Chiadmi 9 years ago
parent
commit
923b407498

+ 2 - 0
.gitignore

@@ -15,3 +15,5 @@ _base_d7.tmproj
 *.sublime-project
 *.sublime-workspace
 *.sublime-project*
+
+node_modules

+ 4 - 1
sites/all/modules/features/materio_content_types/materio_content_types.features.field_instance.inc

@@ -1537,9 +1537,12 @@ function materio_content_types_field_default_field_instances() {
       'module' => 'addressfield',
       'settings' => array(
         'available_countries' => array(),
-        'default_country' => '',
+        'default_country' => 'FR',
         'format_handlers' => array(
           'address' => 'address',
+          'address-optional' => 'address-optional',
+          'address-hide-postal-code' => 0,
+          'address-hide-street' => 0,
           'address-hide-country' => 0,
           'organisation' => 0,
           'name-full' => 0,