added file insert to pages
This commit is contained in:
@@ -60,9 +60,72 @@ function page_field_default_field_instances() {
|
||||
),
|
||||
);
|
||||
|
||||
// Exported field_instance: 'node-page-field_fichiers'
|
||||
$field_instances['node-page-field_fichiers'] = array(
|
||||
'bundle' => 'page',
|
||||
'deleted' => 0,
|
||||
'description' => '',
|
||||
'display' => array(
|
||||
'chapter' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
'default' => array(
|
||||
'label' => 'hidden',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 1,
|
||||
),
|
||||
'teaser' => array(
|
||||
'label' => 'above',
|
||||
'settings' => array(),
|
||||
'type' => 'hidden',
|
||||
'weight' => 0,
|
||||
),
|
||||
),
|
||||
'entity_type' => 'node',
|
||||
'field_name' => 'field_fichiers',
|
||||
'label' => 'Fichiers',
|
||||
'required' => 0,
|
||||
'settings' => array(
|
||||
'description_field' => 0,
|
||||
'file_directory' => 'fichiers_joinds',
|
||||
'file_extensions' => 'txt pdf doc docx csv epub',
|
||||
'max_filesize' => '',
|
||||
'user_register_form' => FALSE,
|
||||
),
|
||||
'widget' => array(
|
||||
'active' => 1,
|
||||
'module' => 'file',
|
||||
'settings' => array(
|
||||
'insert' => 1,
|
||||
'insert_absolute' => 0,
|
||||
'insert_class' => '',
|
||||
'insert_default' => 'icon_link',
|
||||
'insert_styles' => array(
|
||||
'auto' => 0,
|
||||
'icon_link' => 'icon_link',
|
||||
'image' => 0,
|
||||
'image_large' => 0,
|
||||
'image_linkit_thumb' => 0,
|
||||
'image_medium' => 0,
|
||||
'image_thumbnail' => 0,
|
||||
'link' => 0,
|
||||
),
|
||||
'insert_width' => '',
|
||||
'progress_indicator' => 'throbber',
|
||||
),
|
||||
'type' => 'file_generic',
|
||||
'weight' => 100,
|
||||
),
|
||||
);
|
||||
|
||||
// Translatables
|
||||
// Included for use with string extractors like potx.
|
||||
t('Body');
|
||||
t('Fichiers');
|
||||
|
||||
return $field_instances;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user