123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402 |
- <?php
- /**
- * @file
- * uuid_default_entities_example.features.uuid_entities.inc
- */
- /**
- * Implements hook_uuid_default_entities().
- */
- function uuid_default_entities_example_uuid_default_entities() {
- $entities = array();
- $entities['deploy_example_plan'][] = (object) array(
- '__metadata' => array(
- 'type' => 'taxonomy_term',
- 'uri' => 'taxonomy_term/bcb92ce8-2236-e264-65c8-0c163ae716d1',
- 'cause' => 'node/b0558664-c94b-3674-d9df-3e1696b2e471',
- ),
- 'description' => NULL,
- 'format' => NULL,
- 'name' => 'Foo',
- 'path' => array(
- 'alias' => 'term/foo',
- ),
- 'rdf_mapping' => array(
- 'rdftype' => array(
- 0 => 'skos:Concept',
- ),
- 'name' => array(
- 'predicates' => array(
- 0 => 'rdfs:label',
- 1 => 'skos:prefLabel',
- ),
- ),
- 'description' => array(
- 'predicates' => array(
- 0 => 'skos:definition',
- ),
- ),
- 'vid' => array(
- 'predicates' => array(
- 0 => 'skos:inScheme',
- ),
- 'type' => 'rel',
- ),
- 'parent' => array(
- 'predicates' => array(
- 0 => 'skos:broader',
- ),
- 'type' => 'rel',
- ),
- ),
- 'uuid' => 'bcb92ce8-2236-e264-65c8-0c163ae716d1',
- 'vocabulary_machine_name' => 'tags',
- 'weight' => '0',
- );
- $entities['deploy_example_plan'][] = (object) array(
- '__metadata' => array(
- 'type' => 'taxonomy_term',
- 'uri' => 'taxonomy_term/4293a15c-531a-6164-7d1b-668ed019a6bd',
- 'cause' => 'node/b0558664-c94b-3674-d9df-3e1696b2e471',
- ),
- 'description' => NULL,
- 'format' => NULL,
- 'name' => 'Bar',
- 'rdf_mapping' => array(
- 'rdftype' => array(
- 0 => 'skos:Concept',
- ),
- 'name' => array(
- 'predicates' => array(
- 0 => 'rdfs:label',
- 1 => 'skos:prefLabel',
- ),
- ),
- 'description' => array(
- 'predicates' => array(
- 0 => 'skos:definition',
- ),
- ),
- 'vid' => array(
- 'predicates' => array(
- 0 => 'skos:inScheme',
- ),
- 'type' => 'rel',
- ),
- 'parent' => array(
- 'predicates' => array(
- 0 => 'skos:broader',
- ),
- 'type' => 'rel',
- ),
- ),
- 'uuid' => '4293a15c-531a-6164-7d1b-668ed019a6bd',
- 'vocabulary_machine_name' => 'tags',
- 'weight' => '0',
- );
- $entities['deploy_example_plan'][] = (object) array(
- '__metadata' => array(
- 'type' => 'node',
- 'uri' => 'node/b0558664-c94b-3674-d9df-3e1696b2e471',
- 'cause' => FALSE,
- ),
- 'body' => array(
- 'und' => array(
- 0 => array(
- 'format' => 'filtered_html',
- 'summary' => '',
- 'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.',
- ),
- ),
- ),
- 'cid' => '0',
- 'comment' => '2',
- 'comment_count' => '0',
- 'field_image' => array(),
- 'field_tags' => array(
- 'und' => array(
- 0 => array(
- 'tid' => 'bcb92ce8-2236-e264-65c8-0c163ae716d1',
- ),
- 1 => array(
- 'tid' => '4293a15c-531a-6164-7d1b-668ed019a6bd',
- ),
- ),
- ),
- 'language' => 'und',
- 'last_comment_name' => NULL,
- 'last_comment_uid' => '1',
- 'log' => '',
- 'path' => array(
- 'alias' => 'lorem-ipsum',
- ),
- 'promote' => '1',
- 'rdf_mapping' => array(
- 'field_image' => array(
- 'predicates' => array(
- 0 => 'og:image',
- 1 => 'rdfs:seeAlso',
- ),
- 'type' => 'rel',
- ),
- 'field_tags' => array(
- 'predicates' => array(
- 0 => 'dc:subject',
- ),
- 'type' => 'rel',
- ),
- 'rdftype' => array(
- 0 => 'sioc:Item',
- 1 => 'foaf:Document',
- ),
- 'title' => array(
- 'predicates' => array(
- 0 => 'dc:title',
- ),
- ),
- 'created' => array(
- 'predicates' => array(
- 0 => 'dc:date',
- 1 => 'dc:created',
- ),
- 'datatype' => 'xsd:dateTime',
- 'callback' => 'date_iso8601',
- ),
- 'changed' => array(
- 'predicates' => array(
- 0 => 'dc:modified',
- ),
- 'datatype' => 'xsd:dateTime',
- 'callback' => 'date_iso8601',
- ),
- 'body' => array(
- 'predicates' => array(
- 0 => 'content:encoded',
- ),
- ),
- 'uid' => array(
- 'predicates' => array(
- 0 => 'sioc:has_creator',
- ),
- 'type' => 'rel',
- ),
- 'name' => array(
- 'predicates' => array(
- 0 => 'foaf:name',
- ),
- ),
- 'comment_count' => array(
- 'predicates' => array(
- 0 => 'sioc:num_replies',
- ),
- 'datatype' => 'xsd:integer',
- ),
- 'last_activity' => array(
- 'predicates' => array(
- 0 => 'sioc:last_activity_date',
- ),
- 'datatype' => 'xsd:dateTime',
- 'callback' => 'date_iso8601',
- ),
- ),
- 'status' => '1',
- 'sticky' => '0',
- 'title' => 'Lorem ipsum',
- 'tnid' => '0',
- 'translate' => '0',
- 'type' => 'article',
- 'uid' => '1',
- 'uuid' => 'b0558664-c94b-3674-d9df-3e1696b2e471',
- );
- $entities['deploy_example_plan'][] = (object) array(
- '__metadata' => array(
- 'type' => 'taxonomy_term',
- 'uri' => 'taxonomy_term/af738a46-f278-cf84-d94d-9e03879fd71e',
- 'cause' => 'node/5e3d8bbe-a1f2-f2d4-fdc0-71e6c23aa837',
- ),
- 'description' => NULL,
- 'format' => NULL,
- 'name' => 'Baz',
- 'rdf_mapping' => array(
- 'rdftype' => array(
- 0 => 'skos:Concept',
- ),
- 'name' => array(
- 'predicates' => array(
- 0 => 'rdfs:label',
- 1 => 'skos:prefLabel',
- ),
- ),
- 'description' => array(
- 'predicates' => array(
- 0 => 'skos:definition',
- ),
- ),
- 'vid' => array(
- 'predicates' => array(
- 0 => 'skos:inScheme',
- ),
- 'type' => 'rel',
- ),
- 'parent' => array(
- 'predicates' => array(
- 0 => 'skos:broader',
- ),
- 'type' => 'rel',
- ),
- ),
- 'uuid' => 'af738a46-f278-cf84-d94d-9e03879fd71e',
- 'vocabulary_machine_name' => 'tags',
- 'weight' => '0',
- );
- $entities['deploy_example_plan'][] = (object) array(
- '__metadata' => array(
- 'type' => 'user',
- 'uri' => 'user/7cf875e6-dc15-4404-f190-5a7c3e91d14c',
- 'cause' => 'node/5e3d8bbe-a1f2-f2d4-fdc0-71e6c23aa837',
- ),
- 'init' => 'no@example.com',
- 'language' => '',
- 'mail' => 'no@example.com',
- 'name' => 'mohamed',
- 'pass' => '$S$DtyVr4YQkvCpofZdLT4.L23Xb6E8HUkmEgZikN919RTZXZSePwso',
- 'picture' => NULL,
- 'rdf_mapping' => array(
- 'rdftype' => array(
- 0 => 'sioc:UserAccount',
- ),
- 'name' => array(
- 'predicates' => array(
- 0 => 'foaf:name',
- ),
- ),
- 'homepage' => array(
- 'predicates' => array(
- 0 => 'foaf:page',
- ),
- 'type' => 'rel',
- ),
- ),
- 'roles' => array(
- 2 => 'authenticated user',
- 3 => 'administrator',
- ),
- 'signature' => '',
- 'signature_format' => 'filtered_html',
- 'status' => '1',
- 'theme' => '',
- 'timezone' => 'Asia/Riyadh',
- 'uuid' => '7cf875e6-dc15-4404-f190-5a7c3e91d14c',
- );
- $entities['deploy_example_plan'][] = (object) array(
- '__metadata' => array(
- 'type' => 'node',
- 'uri' => 'node/5e3d8bbe-a1f2-f2d4-fdc0-71e6c23aa837',
- 'cause' => FALSE,
- ),
- 'body' => array(
- 'und' => array(
- 0 => array(
- 'format' => 'filtered_html',
- 'summary' => '',
- 'value' => 'Nunc sollicitudin justo ut augue egestas et varius quam consectetur.',
- ),
- ),
- ),
- 'cid' => '0',
- 'comment' => '2',
- 'comment_count' => '0',
- 'field_image' => array(),
- 'field_tags' => array(
- 'und' => array(
- 0 => array(
- 'tid' => 'af738a46-f278-cf84-d94d-9e03879fd71e',
- ),
- ),
- ),
- 'language' => 'und',
- 'last_comment_name' => NULL,
- 'last_comment_uid' => '7cf875e6-dc15-4404-f190-5a7c3e91d14c',
- 'log' => '',
- 'promote' => '1',
- 'rdf_mapping' => array(
- 'field_image' => array(
- 'predicates' => array(
- 0 => 'og:image',
- 1 => 'rdfs:seeAlso',
- ),
- 'type' => 'rel',
- ),
- 'field_tags' => array(
- 'predicates' => array(
- 0 => 'dc:subject',
- ),
- 'type' => 'rel',
- ),
- 'rdftype' => array(
- 0 => 'sioc:Item',
- 1 => 'foaf:Document',
- ),
- 'title' => array(
- 'predicates' => array(
- 0 => 'dc:title',
- ),
- ),
- 'created' => array(
- 'predicates' => array(
- 0 => 'dc:date',
- 1 => 'dc:created',
- ),
- 'datatype' => 'xsd:dateTime',
- 'callback' => 'date_iso8601',
- ),
- 'changed' => array(
- 'predicates' => array(
- 0 => 'dc:modified',
- ),
- 'datatype' => 'xsd:dateTime',
- 'callback' => 'date_iso8601',
- ),
- 'body' => array(
- 'predicates' => array(
- 0 => 'content:encoded',
- ),
- ),
- 'uid' => array(
- 'predicates' => array(
- 0 => 'sioc:has_creator',
- ),
- 'type' => 'rel',
- ),
- 'name' => array(
- 'predicates' => array(
- 0 => 'foaf:name',
- ),
- ),
- 'comment_count' => array(
- 'predicates' => array(
- 0 => 'sioc:num_replies',
- ),
- 'datatype' => 'xsd:integer',
- ),
- 'last_activity' => array(
- 'predicates' => array(
- 0 => 'sioc:last_activity_date',
- ),
- 'datatype' => 'xsd:dateTime',
- 'callback' => 'date_iso8601',
- ),
- ),
- 'status' => '1',
- 'sticky' => '0',
- 'title' => 'Nunc sollicitudin',
- 'tnid' => '0',
- 'translate' => '0',
- 'type' => 'article',
- 'uid' => '7cf875e6-dc15-4404-f190-5a7c3e91d14c',
- 'uuid' => '5e3d8bbe-a1f2-f2d4-fdc0-71e6c23aa837',
- );
- return $entities;
- }
|