Skip to content
This repository was archived by the owner on Aug 14, 2023. It is now read-only.

Commit 4df403e

Browse files
committed
Added the feature OSS projects – A new content type, view and panel page
1 parent 8f425b0 commit 4df403e

13 files changed

+1555
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,138 @@
1+
<?php
2+
/**
3+
* @file
4+
* os2_oss_projekter.features.field_base.inc
5+
*/
6+
7+
/**
8+
* Implements hook_field_default_field_bases().
9+
*/
10+
function os2_oss_projekter_field_default_field_bases() {
11+
$field_bases = array();
12+
13+
// Exported field_base: 'field_n_gleord'.
14+
$field_bases['field_n_gleord'] = array(
15+
'active' => 1,
16+
'cardinality' => -1,
17+
'deleted' => 0,
18+
'entity_types' => array(),
19+
'field_name' => 'field_n_gleord',
20+
'indexes' => array(
21+
'tid' => array(
22+
0 => 'tid',
23+
),
24+
),
25+
'locked' => 0,
26+
'module' => 'taxonomy',
27+
'settings' => array(
28+
'allowed_values' => array(
29+
0 => array(
30+
'vocabulary' => 'oss_tags',
31+
'parent' => 0,
32+
),
33+
),
34+
),
35+
'translatable' => 0,
36+
'type' => 'taxonomy_term_reference',
37+
);
38+
39+
// Exported field_base: 'field_ossproject_logo'.
40+
$field_bases['field_ossproject_logo'] = array(
41+
'active' => 1,
42+
'cardinality' => 1,
43+
'deleted' => 0,
44+
'entity_types' => array(),
45+
'field_name' => 'field_ossproject_logo',
46+
'indexes' => array(
47+
'fid' => array(
48+
0 => 'fid',
49+
),
50+
),
51+
'locked' => 0,
52+
'module' => 'image',
53+
'settings' => array(
54+
'default_image' => 0,
55+
'uri_scheme' => 'public',
56+
),
57+
'translatable' => 0,
58+
'type' => 'image',
59+
);
60+
61+
// Exported field_base: 'field_product_category'.
62+
$field_bases['field_product_category'] = array(
63+
'active' => 1,
64+
'cardinality' => 1,
65+
'deleted' => 0,
66+
'entity_types' => array(),
67+
'field_name' => 'field_product_category',
68+
'indexes' => array(
69+
'tid' => array(
70+
0 => 'tid',
71+
),
72+
),
73+
'locked' => 0,
74+
'module' => 'taxonomy',
75+
'settings' => array(
76+
'allowed_values' => array(
77+
0 => array(
78+
'vocabulary' => 'product_categories',
79+
'parent' => 0,
80+
),
81+
),
82+
),
83+
'translatable' => 0,
84+
'type' => 'taxonomy_term_reference',
85+
);
86+
87+
// Exported field_base: 'field_product_download'.
88+
$field_bases['field_product_download'] = array(
89+
'active' => 1,
90+
'cardinality' => 1,
91+
'deleted' => 0,
92+
'entity_types' => array(),
93+
'field_name' => 'field_product_download',
94+
'indexes' => array(),
95+
'locked' => 0,
96+
'module' => 'link',
97+
'settings' => array(
98+
'attributes' => array(
99+
'class' => '',
100+
'rel' => '',
101+
'target' => 'default',
102+
),
103+
'display' => array(
104+
'url_cutoff' => 80,
105+
),
106+
'enable_tokens' => 1,
107+
'title' => 'optional',
108+
'title_maxlength' => 128,
109+
'title_value' => '',
110+
'url' => 0,
111+
),
112+
'translatable' => 0,
113+
'type' => 'link_field',
114+
);
115+
116+
// Exported field_base: 'field_product_license'.
117+
$field_bases['field_product_license'] = array(
118+
'active' => 1,
119+
'cardinality' => 1,
120+
'deleted' => 0,
121+
'entity_types' => array(),
122+
'field_name' => 'field_product_license',
123+
'indexes' => array(
124+
'format' => array(
125+
0 => 'format',
126+
),
127+
),
128+
'locked' => 0,
129+
'module' => 'text',
130+
'settings' => array(
131+
'max_length' => 255,
132+
),
133+
'translatable' => 0,
134+
'type' => 'text',
135+
);
136+
137+
return $field_bases;
138+
}

0 commit comments

Comments
 (0)