Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* @file
* Database additions for field variables. Used in FieldUpgradePathTest.
*
* The drupal-7.bare.database.php file is imported before this dump, so the
* two form the database structure expected in tests altogether.
*/
// Add a 'bundle settings' variable for article nodes.
$value = array(
'view_modes' => array(
'teaser' => array(
'custom_settings' => 1,
),
'full' => array(
'custom_settings' => 0,
),
'rss' => array(
'custom_settings' => 0,
),
'search_index' => array(
'custom_settings' => 0,
),
'search_result' => array(
'custom_settings' => 0,
),
),
'extra_fields' => array(
'form' => array(),
'display' => array(
'language' => array(
'default' => array(
'weight' => -1,
'visible' => 1,
),
'teaser' => array(
'weight' => 0,
'visible' => 0,
),
),
),
),
);
db_insert('variable')
->fields(array(
'name' => 'field_bundle_settings_node__article',
'value' => serialize($value),
))
->execute();