Projet

Général

Profil

Paste
Télécharger (9,84 ko) Statistiques
| Branche: | Révision:

root / drupal7 / sites / all / modules / uuid / uuid_default_entities_example / uuid_default_entities_example.features.uuid_entities.inc @ 3dfa8105

1
<?php
2
/**
3
 * @file
4
 * uuid_default_entities_example.features.uuid_entities.inc
5
 */
6

    
7
/**
8
 * Implements hook_uuid_default_entities().
9
 */
10
function uuid_default_entities_example_uuid_default_entities() {
11
  $entities = array();
12

    
13
  $entities['deploy_example_plan'][] = (object) array(
14
    '__metadata' => array(
15
      'type' => 'taxonomy_term',
16
      'uri' => 'taxonomy_term/bcb92ce8-2236-e264-65c8-0c163ae716d1',
17
      'cause' => 'node/b0558664-c94b-3674-d9df-3e1696b2e471',
18
    ),
19
    'description' => NULL,
20
    'format' => NULL,
21
    'name' => 'Foo',
22
    'path' => array(
23
      'alias' => 'term/foo',
24
    ),
25
    'rdf_mapping' => array(
26
      'rdftype' => array(
27
        0 => 'skos:Concept',
28
      ),
29
      'name' => array(
30
        'predicates' => array(
31
          0 => 'rdfs:label',
32
          1 => 'skos:prefLabel',
33
        ),
34
      ),
35
      'description' => array(
36
        'predicates' => array(
37
          0 => 'skos:definition',
38
        ),
39
      ),
40
      'vid' => array(
41
        'predicates' => array(
42
          0 => 'skos:inScheme',
43
        ),
44
        'type' => 'rel',
45
      ),
46
      'parent' => array(
47
        'predicates' => array(
48
          0 => 'skos:broader',
49
        ),
50
        'type' => 'rel',
51
      ),
52
    ),
53
    'uuid' => 'bcb92ce8-2236-e264-65c8-0c163ae716d1',
54
    'vocabulary_machine_name' => 'tags',
55
    'weight' => '0',
56
  );
57
  $entities['deploy_example_plan'][] = (object) array(
58
    '__metadata' => array(
59
      'type' => 'taxonomy_term',
60
      'uri' => 'taxonomy_term/4293a15c-531a-6164-7d1b-668ed019a6bd',
61
      'cause' => 'node/b0558664-c94b-3674-d9df-3e1696b2e471',
62
    ),
63
    'description' => NULL,
64
    'format' => NULL,
65
    'name' => 'Bar',
66
    'rdf_mapping' => array(
67
      'rdftype' => array(
68
        0 => 'skos:Concept',
69
      ),
70
      'name' => array(
71
        'predicates' => array(
72
          0 => 'rdfs:label',
73
          1 => 'skos:prefLabel',
74
        ),
75
      ),
76
      'description' => array(
77
        'predicates' => array(
78
          0 => 'skos:definition',
79
        ),
80
      ),
81
      'vid' => array(
82
        'predicates' => array(
83
          0 => 'skos:inScheme',
84
        ),
85
        'type' => 'rel',
86
      ),
87
      'parent' => array(
88
        'predicates' => array(
89
          0 => 'skos:broader',
90
        ),
91
        'type' => 'rel',
92
      ),
93
    ),
94
    'uuid' => '4293a15c-531a-6164-7d1b-668ed019a6bd',
95
    'vocabulary_machine_name' => 'tags',
96
    'weight' => '0',
97
  );
98
  $entities['deploy_example_plan'][] = (object) array(
99
    '__metadata' => array(
100
      'type' => 'node',
101
      'uri' => 'node/b0558664-c94b-3674-d9df-3e1696b2e471',
102
      'cause' => FALSE,
103
    ),
104
    'body' => array(
105
      'und' => array(
106
        0 => array(
107
          'format' => 'filtered_html',
108
          'summary' => '',
109
          'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
110
        ),
111
      ),
112
    ),
113
    'cid' => '0',
114
    'comment' => '2',
115
    'comment_count' => '0',
116
    'field_image' => array(),
117
    'field_tags' => array(
118
      'und' => array(
119
        0 => array(
120
          'tid' => 'bcb92ce8-2236-e264-65c8-0c163ae716d1',
121
        ),
122
        1 => array(
123
          'tid' => '4293a15c-531a-6164-7d1b-668ed019a6bd',
124
        ),
125
      ),
126
    ),
127
    'language' => 'und',
128
    'last_comment_name' => NULL,
129
    'last_comment_uid' => '1',
130
    'log' => '',
131
    'path' => array(
132
      'alias' => 'lorem-ipsum',
133
    ),
134
    'promote' => '1',
135
    'rdf_mapping' => array(
136
      'field_image' => array(
137
        'predicates' => array(
138
          0 => 'og:image',
139
          1 => 'rdfs:seeAlso',
140
        ),
141
        'type' => 'rel',
142
      ),
143
      'field_tags' => array(
144
        'predicates' => array(
145
          0 => 'dc:subject',
146
        ),
147
        'type' => 'rel',
148
      ),
149
      'rdftype' => array(
150
        0 => 'sioc:Item',
151
        1 => 'foaf:Document',
152
      ),
153
      'title' => array(
154
        'predicates' => array(
155
          0 => 'dc:title',
156
        ),
157
      ),
158
      'created' => array(
159
        'predicates' => array(
160
          0 => 'dc:date',
161
          1 => 'dc:created',
162
        ),
163
        'datatype' => 'xsd:dateTime',
164
        'callback' => 'date_iso8601',
165
      ),
166
      'changed' => array(
167
        'predicates' => array(
168
          0 => 'dc:modified',
169
        ),
170
        'datatype' => 'xsd:dateTime',
171
        'callback' => 'date_iso8601',
172
      ),
173
      'body' => array(
174
        'predicates' => array(
175
          0 => 'content:encoded',
176
        ),
177
      ),
178
      'uid' => array(
179
        'predicates' => array(
180
          0 => 'sioc:has_creator',
181
        ),
182
        'type' => 'rel',
183
      ),
184
      'name' => array(
185
        'predicates' => array(
186
          0 => 'foaf:name',
187
        ),
188
      ),
189
      'comment_count' => array(
190
        'predicates' => array(
191
          0 => 'sioc:num_replies',
192
        ),
193
        'datatype' => 'xsd:integer',
194
      ),
195
      'last_activity' => array(
196
        'predicates' => array(
197
          0 => 'sioc:last_activity_date',
198
        ),
199
        'datatype' => 'xsd:dateTime',
200
        'callback' => 'date_iso8601',
201
      ),
202
    ),
203
    'status' => '1',
204
    'sticky' => '0',
205
    'title' => 'Lorem ipsum',
206
    'tnid' => '0',
207
    'translate' => '0',
208
    'type' => 'article',
209
    'uid' => '1',
210
    'uuid' => 'b0558664-c94b-3674-d9df-3e1696b2e471',
211
  );
212
  $entities['deploy_example_plan'][] = (object) array(
213
    '__metadata' => array(
214
      'type' => 'taxonomy_term',
215
      'uri' => 'taxonomy_term/af738a46-f278-cf84-d94d-9e03879fd71e',
216
      'cause' => 'node/5e3d8bbe-a1f2-f2d4-fdc0-71e6c23aa837',
217
    ),
218
    'description' => NULL,
219
    'format' => NULL,
220
    'name' => 'Baz',
221
    'rdf_mapping' => array(
222
      'rdftype' => array(
223
        0 => 'skos:Concept',
224
      ),
225
      'name' => array(
226
        'predicates' => array(
227
          0 => 'rdfs:label',
228
          1 => 'skos:prefLabel',
229
        ),
230
      ),
231
      'description' => array(
232
        'predicates' => array(
233
          0 => 'skos:definition',
234
        ),
235
      ),
236
      'vid' => array(
237
        'predicates' => array(
238
          0 => 'skos:inScheme',
239
        ),
240
        'type' => 'rel',
241
      ),
242
      'parent' => array(
243
        'predicates' => array(
244
          0 => 'skos:broader',
245
        ),
246
        'type' => 'rel',
247
      ),
248
    ),
249
    'uuid' => 'af738a46-f278-cf84-d94d-9e03879fd71e',
250
    'vocabulary_machine_name' => 'tags',
251
    'weight' => '0',
252
  );
253
  $entities['deploy_example_plan'][] = (object) array(
254
    '__metadata' => array(
255
      'type' => 'user',
256
      'uri' => 'user/7cf875e6-dc15-4404-f190-5a7c3e91d14c',
257
      'cause' => 'node/5e3d8bbe-a1f2-f2d4-fdc0-71e6c23aa837',
258
    ),
259
    'init' => 'no@example.com',
260
    'language' => '',
261
    'mail' => 'no@example.com',
262
    'name' => 'mohamed',
263
    'pass' => '$S$DtyVr4YQkvCpofZdLT4.L23Xb6E8HUkmEgZikN919RTZXZSePwso',
264
    'picture' => NULL,
265
    'rdf_mapping' => array(
266
      'rdftype' => array(
267
        0 => 'sioc:UserAccount',
268
      ),
269
      'name' => array(
270
        'predicates' => array(
271
          0 => 'foaf:name',
272
        ),
273
      ),
274
      'homepage' => array(
275
        'predicates' => array(
276
          0 => 'foaf:page',
277
        ),
278
        'type' => 'rel',
279
      ),
280
    ),
281
    'roles' => array(
282
      2 => 'authenticated user',
283
      3 => 'administrator',
284
    ),
285
    'signature' => '',
286
    'signature_format' => 'filtered_html',
287
    'status' => '1',
288
    'theme' => '',
289
    'timezone' => 'Asia/Riyadh',
290
    'uuid' => '7cf875e6-dc15-4404-f190-5a7c3e91d14c',
291
  );
292
  $entities['deploy_example_plan'][] = (object) array(
293
    '__metadata' => array(
294
      'type' => 'node',
295
      'uri' => 'node/5e3d8bbe-a1f2-f2d4-fdc0-71e6c23aa837',
296
      'cause' => FALSE,
297
    ),
298
    'body' => array(
299
      'und' => array(
300
        0 => array(
301
          'format' => 'filtered_html',
302
          'summary' => '',
303
          'value' => 'Nunc sollicitudin justo ut augue egestas et varius quam consectetur.',
304
        ),
305
      ),
306
    ),
307
    'cid' => '0',
308
    'comment' => '2',
309
    'comment_count' => '0',
310
    'field_image' => array(),
311
    'field_tags' => array(
312
      'und' => array(
313
        0 => array(
314
          'tid' => 'af738a46-f278-cf84-d94d-9e03879fd71e',
315
        ),
316
      ),
317
    ),
318
    'language' => 'und',
319
    'last_comment_name' => NULL,
320
    'last_comment_uid' => '7cf875e6-dc15-4404-f190-5a7c3e91d14c',
321
    'log' => '',
322
    'promote' => '1',
323
    'rdf_mapping' => array(
324
      'field_image' => array(
325
        'predicates' => array(
326
          0 => 'og:image',
327
          1 => 'rdfs:seeAlso',
328
        ),
329
        'type' => 'rel',
330
      ),
331
      'field_tags' => array(
332
        'predicates' => array(
333
          0 => 'dc:subject',
334
        ),
335
        'type' => 'rel',
336
      ),
337
      'rdftype' => array(
338
        0 => 'sioc:Item',
339
        1 => 'foaf:Document',
340
      ),
341
      'title' => array(
342
        'predicates' => array(
343
          0 => 'dc:title',
344
        ),
345
      ),
346
      'created' => array(
347
        'predicates' => array(
348
          0 => 'dc:date',
349
          1 => 'dc:created',
350
        ),
351
        'datatype' => 'xsd:dateTime',
352
        'callback' => 'date_iso8601',
353
      ),
354
      'changed' => array(
355
        'predicates' => array(
356
          0 => 'dc:modified',
357
        ),
358
        'datatype' => 'xsd:dateTime',
359
        'callback' => 'date_iso8601',
360
      ),
361
      'body' => array(
362
        'predicates' => array(
363
          0 => 'content:encoded',
364
        ),
365
      ),
366
      'uid' => array(
367
        'predicates' => array(
368
          0 => 'sioc:has_creator',
369
        ),
370
        'type' => 'rel',
371
      ),
372
      'name' => array(
373
        'predicates' => array(
374
          0 => 'foaf:name',
375
        ),
376
      ),
377
      'comment_count' => array(
378
        'predicates' => array(
379
          0 => 'sioc:num_replies',
380
        ),
381
        'datatype' => 'xsd:integer',
382
      ),
383
      'last_activity' => array(
384
        'predicates' => array(
385
          0 => 'sioc:last_activity_date',
386
        ),
387
        'datatype' => 'xsd:dateTime',
388
        'callback' => 'date_iso8601',
389
      ),
390
    ),
391
    'status' => '1',
392
    'sticky' => '0',
393
    'title' => 'Nunc sollicitudin',
394
    'tnid' => '0',
395
    'translate' => '0',
396
    'type' => 'article',
397
    'uid' => '7cf875e6-dc15-4404-f190-5a7c3e91d14c',
398
    'uuid' => '5e3d8bbe-a1f2-f2d4-fdc0-71e6c23aa837',
399
  );
400

    
401
  return $entities;
402
}