|
|
@@ -18,21 +18,10 @@ function register_connections_for($type, $from_types) {
|
|
18
|
18
|
]);
|
|
19
|
19
|
}
|
|
20
|
20
|
}
|
|
|
21
|
+
|
|
21
|
22
|
function register_all_one_offs() {
|
|
22
|
|
- p2p_register_connection_type([
|
|
23
|
|
- 'name' => 'artists_to_artists',
|
|
24
|
|
- 'to' => 'artist',
|
|
25
|
|
- 'from' => 'artist',
|
|
26
|
|
- 'reciprocal' => true,
|
|
27
|
|
- 'admin_box' => $admin_box
|
|
28
|
|
- ]);
|
|
29
|
|
- p2p_register_connection_type([
|
|
30
|
|
- 'name' => 'shorts_to_techniques',
|
|
31
|
|
- 'to' => 'short',
|
|
32
|
|
- 'from' => 'technique',
|
|
33
|
|
- 'reciprocal' => true,
|
|
34
|
|
- 'admin_box' => $admin_box
|
|
35
|
|
- ]);
|
|
|
23
|
+ register_connections_for('artist', ['artist']);
|
|
|
24
|
+ register_connections_for('short', ['technique']);
|
|
36
|
25
|
}
|
|
37
|
26
|
|
|
38
|
27
|
function all_connection_types() {
|