|
|
@@ -22,6 +22,7 @@ function register_connections_for($type, $from_types) {
|
|
22
|
22
|
function register_all_one_offs() {
|
|
23
|
23
|
register_connections_for('artist', ['artist']);
|
|
24
|
24
|
register_connections_for('short', ['technique']);
|
|
|
25
|
+ register_connections_for('guide', ['episode']);
|
|
25
|
26
|
register_connections_for('event', ['event']);
|
|
26
|
27
|
}
|
|
27
|
28
|
|
|
|
@@ -33,8 +34,8 @@ function all_connection_types() {
|
|
33
|
34
|
'exhibition',
|
|
34
|
35
|
'post',
|
|
35
|
36
|
'technique',
|
|
36
|
|
- 'guide',
|
|
37
|
37
|
'short',
|
|
|
38
|
+ 'guide',
|
|
38
|
39
|
];
|
|
39
|
40
|
|
|
40
|
41
|
// Kick-off by assigning to artist
|
|
|
@@ -42,12 +43,12 @@ function all_connection_types() {
|
|
42
|
43
|
register_connections_for($artist, $connection_stack);
|
|
43
|
44
|
|
|
44
|
45
|
/** Pop the end for now... */
|
|
45
|
|
- $short = array_pop($connection_stack);
|
|
46
|
46
|
$guide = array_pop($connection_stack);
|
|
47
|
47
|
|
|
48
|
48
|
$episode = array_shift($connection_stack);
|
|
49
|
49
|
register_connections_for($episode, $connection_stack);
|
|
50
|
50
|
|
|
|
51
|
+ $short = array_pop($connection_stack);
|
|
51
|
52
|
$technique = array_pop($connection_stack);
|
|
52
|
53
|
|
|
53
|
54
|
// Remaining: ['event', 'exhibition', 'post']
|