groups/modules/commons/commons_documents/commons_documents.features....

108 lines
2.6 KiB
PHP

<?php
/**
* @file
* commons_documents.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function commons_documents_field_default_field_instances() {
$field_instances = array();
// Exported field_instance: 'node-document-body'
$field_instances['node-document-body'] = array(
'bundle' => 'document',
'default_value' => NULL,
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(),
'type' => 'text_default',
'weight' => -49,
),
'teaser' => array(
'label' => 'hidden',
'module' => 'text',
'settings' => array(
'trim_length' => 600,
),
'type' => 'text_summary_or_trimmed',
'weight' => -49,
),
),
'display_in_partial_form' => 1,
'entity_type' => 'node',
'field_name' => 'body',
'label' => 'Body',
'required' => FALSE,
'settings' => array(
'display_summary' => 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' => -49,
),
);
// Exported field_instance: 'node-document-field_document_file'
$field_instances['node-document-field_document_file'] = array(
'bundle' => 'document',
'deleted' => 0,
'description' => '',
'display' => array(
'default' => array(
'label' => 'above',
'module' => 'file',
'settings' => array(),
'type' => 'file_default',
'weight' => -48,
),
'teaser' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => -48,
),
),
'display_in_partial_form' => 1,
'entity_type' => 'node',
'field_name' => 'field_document_file',
'label' => 'File',
'required' => 1,
'settings' => array(
'description_field' => 1,
'file_directory' => '',
'file_extensions' => 'txt doc docx xls xlsx ppt pptx odt odp ods pdf',
'max_filesize' => '',
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'file',
'settings' => array(
'progress_indicator' => 'throbber',
),
'type' => 'file_generic',
'weight' => -48,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Body');
t('File');
return $field_instances;
}