uuid_default_entities_example.features.uuid_entities.inc 9.8 KB

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