-
Notifications
You must be signed in to change notification settings - Fork 1
/
panopoly_core.features.field_instance.inc
84 lines (80 loc) · 2.43 KB
/
panopoly_core.features.field_instance.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<?php
/**
* @file
* panopoly_core.features.field_instance.inc
*/
/**
* Implements hook_field_default_field_instances().
*/
function panopoly_core_field_default_field_instances() {
$field_instances = array();
// Exported field_instance:
// 'taxonomy_term-panopoly_categories-field_featured_image'.
$field_instances['taxonomy_term-panopoly_categories-field_featured_image'] = array(
'bundle' => 'panopoly_categories',
'deleted' => 0,
'description' => 'This is the primary image to be associated with the taxonomy term',
'display' => array(
'default' => array(
'label' => 'hidden',
'module' => 'image',
'settings' => array(
'image_link' => '',
'image_style' => 'panopoly_image_quarter',
),
'type' => 'image',
'weight' => 0,
),
'featured' => array(
'label' => 'above',
'settings' => array(),
'type' => 'hidden',
'weight' => 0,
),
),
'entity_type' => 'taxonomy_term',
'field_name' => 'field_featured_image',
'label' => 'Image',
'required' => 0,
'settings' => array(
'alt_field' => 1,
'default_image' => 0,
'file_directory' => 'categories',
'file_extensions' => 'png gif jpg jpeg',
'max_filesize' => '',
'max_resolution' => '',
'min_resolution' => '300x200',
'title_field' => 0,
'user_register_form' => FALSE,
),
'widget' => array(
'active' => 1,
'module' => 'image',
'settings' => array(
'manualcrop_crop_info' => 1,
'manualcrop_default_crop_area' => 1,
'manualcrop_enable' => 1,
'manualcrop_inline_crop' => 0,
'manualcrop_instant_crop' => 0,
'manualcrop_instant_preview' => 1,
'manualcrop_keyboard' => 1,
'manualcrop_maximize_default_crop_area' => 1,
'manualcrop_require_cropping' => array(),
'manualcrop_styles_list' => array(
'panopoly_image_full' => 'panopoly_image_full',
),
'manualcrop_styles_mode' => 'include',
'manualcrop_thumblist' => 0,
'preview_image_style' => 'panopoly_image_thumbnail',
'progress_indicator' => 'throbber',
),
'type' => 'image_image',
'weight' => 1,
),
);
// Translatables
// Included for use with string extractors like potx.
t('Image');
t('This is the primary image to be associated with the taxonomy term');
return $field_instances;
}