diff --git a/modules/bc_api_example/bc_api_example.data.inc b/modules/bc_api_example/bc_api_example.data.inc index bbbcac0..a6a9e84 100644 --- a/modules/bc_api_example/bc_api_example.data.inc +++ b/modules/bc_api_example/bc_api_example.data.inc @@ -30,6 +30,26 @@ function bc_api_example_get_nationalities_data() { 'label' => 'Scotland', 'tid' => NULL, ], + 'china' => [ + 'label' => 'China', + 'tid' => NULL, + ], + 'united_states' => [ + 'label' => 'United States', + 'tid' => NULL, + ], + 'united_kingdom' => [ + 'label' => 'United Kingdom', + 'tid' => NULL, + ], + 'jamaica' => [ + 'label' => 'Jamaica', + 'tid' => NULL, + ], + 'france' => [ + 'label' => 'France', + 'tid' => NULL, + ], ]; } @@ -58,6 +78,38 @@ function bc_api_example_get_ships_data() { 'title' => 'Adventure Galley', 'nid' => NULL, ], + 'red_flag_fleet' => [ + 'title' => 'Red Flag Fleet', + 'nid' => NULL, + ], + 'fancy' => [ + 'title' => 'Fancy', + 'nid' => NULL, + ], + 'the_ghost' => [ + 'title' => 'The Ghost', + 'nid' => NULL, + ], + 'whydah_gally' => [ + 'title' => 'Whydah Gally', + 'nid' => NULL, + ], + 'ranger' => [ + 'title' => 'Ranger', + 'nid' => NULL, + ], + 'la_trompeuse' => [ + 'title' => 'La Trompeuse', + 'nid' => NULL, + ], + 'pirate_queen' => [ + 'title' => 'pirate_queen', + 'nid' => NULL, + ], + 'blessed_william' => [ + 'title' => 'Blessed William', + 'nid' => NULL, + ], ]; } @@ -71,7 +123,7 @@ function bc_api_example_get_pirates_data() { 'status' => 1, 'title' => 'Edward Teach', 'body' => "", - 'nickname' => "Blackbeard", + 'nickname' => ["Blackbeard"], 'nationality' => ['england'], 'ships' => ['queen_anne'], ], @@ -80,7 +132,7 @@ function bc_api_example_get_pirates_data() { 'status' => 1, 'title' => 'Bartholomew Roberts', 'body' => "", - 'nickname' => "Black Bart", + 'nickname' => ["Black Bart", "The Dread Pirate"], 'nationality' => ['wales'], 'ships' => ['royal_fortune'], ], @@ -89,7 +141,7 @@ function bc_api_example_get_pirates_data() { 'status' => 1, 'title' => 'Sam Bellamy', 'body' => "", - 'nickname' => "Black Sam", + 'nickname' => ["Black Sam"], 'nationality' => ['england'], 'ships' => ['whydah'], ], @@ -97,7 +149,7 @@ function bc_api_example_get_pirates_data() { 'nid' => NULL, 'status' => 1, 'title' => 'Stede Bonnet', - 'nickname' => "The Gentleman Pirate", + 'nickname' => ["The Gentleman Pirate"], 'body' => "Nicknamed \"The Gentleman Pirate\", Bonnet was born into a wealthy family before turning to piracy.", 'nationality' => ['barbados'], 'ships' => ['revenge'], @@ -106,10 +158,127 @@ function bc_api_example_get_pirates_data() { 'nid' => NULL, 'status' => 1, 'title' => 'William Kidd', - 'nickname' => "Captain", + 'nickname' => ["Captain", "Captain Kidd"], 'body' => "Although modern historians dispute the legitimacy of his trial and execution, the rumor of Captain Kidd's buried treasure has served only to build a legend around the man as a great pirate. His property was claimed by the crown and given to the Royal Hospital, Greenwich, by Queen Anne.", 'nationality' => ['scotland'], + 'ships' => ['blessed_william', 'adventure_galley'], + ], + 'anne_bonny' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => 'Anne Bonny', + 'nickname' => ["The Pirate Queen", "Sea's Fury"], + 'body' => "", + 'nationality' => ['ireland'], 'ships' => ['revenge'], ], + 'zheng yi sao' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => 'Zheng Yi Sao', + 'nickname' => ["The Terror of South China", "Dragon Lady of the Seas"], + 'body' => "", + 'nationality' => ['china'], + 'ships' => ['red_flag_fleet'], + ], + 'henry_every' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => 'Henry Every', + 'nickname' => ["Long Ben", "King of Pirates"], + 'body' => "", + 'nationality' => ['england'], + 'ships' => ['fancy'], + ], + 'charlotte_de_berry' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => 'Charlotte de Berry', + 'nickname' => ["The Fierce Mistress"], + 'body' => "", + 'nationality' => ['united_kingdom'], + 'ships' => ['queen_anne'], + ], + 'mary_read' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => 'Mary Read', + 'nickname' => ["Mark Read"], + 'body' => "", + 'nationality' => ['united_kingdom'], + 'ships' => ['revenge'], + ], + 'calico_jack' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => 'Calico Jack', + 'nickname' => [], + 'body' => "", + 'nationality' => ['jamaica'], + 'ships' => ['ranger'], + ], + 'francois_lolonnais' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => 'Francois l\'Olonnais', + 'nickname' => ["The Bane of Spain"], + 'body' => "", + 'nationality' => ['france'], + 'ships' => ['la_trompeuse'], + ], + 'grace_omalley' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => 'Grace O\'Malley', + 'nickname' => ["Granuaile"], + 'body' => "", + 'nationality' => ['ireland'], + 'ships' => ['pirate_queen'], + ], + '' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => '', + 'nickname' => ["", ""], + 'body' => "", + 'nationality' => [''], + 'ships' => [''], + ], + '' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => '', + 'nickname' => ["", ""], + 'body' => "", + 'nationality' => [''], + 'ships' => [''], + ], + '' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => '', + 'nickname' => ["", ""], + 'body' => "", + 'nationality' => [''], + 'ships' => [''], + ], + '' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => '', + 'nickname' => ["", ""], + 'body' => "", + 'nationality' => [''], + 'ships' => [''], + ], + '' => [ + 'nid' => NULL, + 'status' => 1, + 'title' => '', + 'nickname' => ["", ""], + 'body' => "", + 'nationality' => [''], + 'ships' => [''], + ], ]; } diff --git a/modules/bc_api_example/config/optional/field.storage.node.field_nickname.yml b/modules/bc_api_example/config/optional/field.storage.node.field_nickname.yml index e0c4ae7..eccf45b 100644 --- a/modules/bc_api_example/config/optional/field.storage.node.field_nickname.yml +++ b/modules/bc_api_example/config/optional/field.storage.node.field_nickname.yml @@ -13,7 +13,7 @@ settings: case_sensitive: false module: core locked: false -cardinality: 1 +cardinality: -1 translatable: true indexes: { } persist_with_no_fields: false