mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Issue #2580503: Add Photos and Files field to (almost) all logs
This commit is contained in:
parent
57afb718e4
commit
2908f224d4
2 changed files with 61 additions and 2 deletions
|
@ -205,6 +205,64 @@ function farm_equipment_field_default_field_instances() {
|
|||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_maintenance-field_farm_files'
|
||||
$field_instances['log-farm_maintenance-field_farm_files'] = array(
|
||||
'bundle' => 'farm_maintenance',
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'default' => array(
|
||||
'label' => 'above',
|
||||
'module' => 'file',
|
||||
'settings' => array(),
|
||||
'type' => 'file_table',
|
||||
'weight' => 3,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
'field_name' => 'field_farm_files',
|
||||
'label' => 'Files',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'description_field' => 1,
|
||||
'file_directory' => '',
|
||||
'file_extensions' => 'csv doc docx odt odp ods pdf ppt pptx txt xls xlsx kml kmz zip tar gz',
|
||||
'filefield_paths' => array(
|
||||
'active_updating' => 0,
|
||||
'file_name' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 0,
|
||||
'slashes' => 0,
|
||||
'transliterate' => 0,
|
||||
),
|
||||
'value' => '[file:ffp-name-only-original].[file:ffp-extension-original]',
|
||||
),
|
||||
'file_path' => array(
|
||||
'options' => array(
|
||||
'pathauto' => 0,
|
||||
'slashes' => 0,
|
||||
'transliterate' => 0,
|
||||
),
|
||||
'value' => 'farm/log/maintenance/[log:id]',
|
||||
),
|
||||
'redirect' => FALSE,
|
||||
'retroactive_update' => 0,
|
||||
),
|
||||
'filefield_paths_enabled' => 1,
|
||||
'max_filesize' => '',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'file',
|
||||
'settings' => array(
|
||||
'progress_indicator' => 'bar',
|
||||
),
|
||||
'type' => 'file_generic',
|
||||
'weight' => 5,
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'log-farm_maintenance-field_farm_images'
|
||||
$field_instances['log-farm_maintenance-field_farm_images'] = array(
|
||||
'bundle' => 'farm_maintenance',
|
||||
|
@ -225,7 +283,7 @@ function farm_equipment_field_default_field_instances() {
|
|||
'colorbox_node_style_first' => 'large',
|
||||
),
|
||||
'type' => 'colorbox',
|
||||
'weight' => 3,
|
||||
'weight' => 2,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
|
@ -286,7 +344,7 @@ function farm_equipment_field_default_field_instances() {
|
|||
'module' => 'text',
|
||||
'settings' => array(),
|
||||
'type' => 'text_default',
|
||||
'weight' => 2,
|
||||
'weight' => 1,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'log',
|
||||
|
|
|
@ -28,6 +28,7 @@ features[field_instance][] = farm_asset-equipment-field_farm_description
|
|||
features[field_instance][] = farm_asset-equipment-field_farm_files
|
||||
features[field_instance][] = farm_asset-equipment-field_farm_images
|
||||
features[field_instance][] = log-farm_maintenance-field_farm_equipment
|
||||
features[field_instance][] = log-farm_maintenance-field_farm_files
|
||||
features[field_instance][] = log-farm_maintenance-field_farm_images
|
||||
features[field_instance][] = log-farm_maintenance-field_farm_notes
|
||||
features[log_type][] = farm_maintenance
|
||||
|
|
Loading…
Reference in a new issue