mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Issue #2879556: Multiupload file and image fields
This commit is contained in:
parent
43a6a890bc
commit
0e14d05613
3 changed files with 16 additions and 8 deletions
|
@ -21,6 +21,8 @@ This module depends on the following modules:
|
|||
* Features (http://drupal.org/project/features)
|
||||
* Field Collection (http://drupal.org/project/field_collection)
|
||||
* Log (http://drupal.org/project/log)
|
||||
* Multiupload Filefield Widget (http://drupal.org/project/multiupload_filefield_widget)
|
||||
* Multiupload Imagefield Widget (http://drupal.org/project/multiupload_imagefield_widget)
|
||||
* Pathauto (http://drupal.org/project/pathauto)
|
||||
* Strongarm (http://drupal.org/project/strongarm)
|
||||
* Views (http://drupal.org/project/views)
|
||||
|
|
|
@ -299,6 +299,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
// Exported field_instance: 'farm_asset-animal-field_farm_files'.
|
||||
$field_instances['farm_asset-animal-field_farm_files'] = array(
|
||||
'bundle' => 'animal',
|
||||
'default_value' => array(),
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
|
@ -323,11 +324,11 @@ function farm_livestock_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'file',
|
||||
'module' => 'multiupload_filefield_widget',
|
||||
'settings' => array(
|
||||
'progress_indicator' => 'bar',
|
||||
),
|
||||
'type' => 'file_generic',
|
||||
'type' => 'file_mfw',
|
||||
'weight' => 12,
|
||||
),
|
||||
);
|
||||
|
@ -335,6 +336,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
// Exported field_instance: 'farm_asset-animal-field_farm_images'.
|
||||
$field_instances['farm_asset-animal-field_farm_images'] = array(
|
||||
'bundle' => 'animal',
|
||||
'default_value' => array(),
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
|
@ -372,12 +374,12 @@ function farm_livestock_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'module' => 'multiupload_imagefield_widget',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'bar',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'type' => 'image_miw',
|
||||
'weight' => 11,
|
||||
),
|
||||
);
|
||||
|
@ -566,6 +568,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
// Exported field_instance: 'log-farm_medical-field_farm_files'.
|
||||
$field_instances['log-farm_medical-field_farm_files'] = array(
|
||||
'bundle' => 'farm_medical',
|
||||
'default_value' => array(),
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
|
@ -590,11 +593,11 @@ function farm_livestock_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'file',
|
||||
'module' => 'multiupload_filefield_widget',
|
||||
'settings' => array(
|
||||
'progress_indicator' => 'bar',
|
||||
),
|
||||
'type' => 'file_generic',
|
||||
'type' => 'file_mfw',
|
||||
'weight' => 7,
|
||||
),
|
||||
);
|
||||
|
@ -602,6 +605,7 @@ function farm_livestock_field_default_field_instances() {
|
|||
// Exported field_instance: 'log-farm_medical-field_farm_images'.
|
||||
$field_instances['log-farm_medical-field_farm_images'] = array(
|
||||
'bundle' => 'farm_medical',
|
||||
'default_value' => array(),
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
|
@ -639,12 +643,12 @@ function farm_livestock_field_default_field_instances() {
|
|||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'image',
|
||||
'module' => 'multiupload_imagefield_widget',
|
||||
'settings' => array(
|
||||
'preview_image_style' => 'thumbnail',
|
||||
'progress_indicator' => 'bar',
|
||||
),
|
||||
'type' => 'image_image',
|
||||
'type' => 'image_miw',
|
||||
'weight' => 6,
|
||||
),
|
||||
);
|
||||
|
|
|
@ -20,6 +20,8 @@ dependencies[] = file
|
|||
dependencies[] = image
|
||||
dependencies[] = list
|
||||
dependencies[] = log
|
||||
dependencies[] = multiupload_filefield_widget
|
||||
dependencies[] = multiupload_imagefield_widget
|
||||
dependencies[] = options
|
||||
dependencies[] = pathauto
|
||||
dependencies[] = strongarm
|
||||
|
|
Loading…
Reference in a new issue