1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
db_insert('node')->fields(array(
|
8 |
|
|
'nid',
|
9 |
|
|
'vid',
|
10 |
|
|
'type',
|
11 |
|
|
'language',
|
12 |
|
|
'title',
|
13 |
|
|
'uid',
|
14 |
|
|
'status',
|
15 |
|
|
'created',
|
16 |
|
|
'changed',
|
17 |
|
|
'comment',
|
18 |
|
|
'promote',
|
19 |
|
|
'moderate',
|
20 |
|
|
'sticky',
|
21 |
|
|
'tnid',
|
22 |
|
|
'translate',
|
23 |
|
|
))
|
24 |
|
|
->values(array(
|
25 |
|
|
'nid' => '53',
|
26 |
|
|
'vid' => '63',
|
27 |
|
|
'type' => 'translatable_page',
|
28 |
|
|
'language' => 'fr',
|
29 |
|
|
'title' => 'First translatable page',
|
30 |
|
|
'uid' => '1',
|
31 |
|
|
'status' => '1',
|
32 |
|
|
'created' => '1298363952',
|
33 |
|
|
'changed' => '1298363952',
|
34 |
|
|
'comment' => '2',
|
35 |
|
|
'promote' => '0',
|
36 |
|
|
'moderate' => '0',
|
37 |
|
|
'sticky' => '0',
|
38 |
|
|
'tnid' => '0',
|
39 |
|
|
'translate' => '0',
|
40 |
|
|
))
|
41 |
|
|
->execute();
|
42 |
|
|
|
43 |
|
|
db_insert('node_revisions')->fields(array(
|
44 |
|
|
'nid',
|
45 |
|
|
'vid',
|
46 |
|
|
'uid',
|
47 |
|
|
'title',
|
48 |
|
|
'body',
|
49 |
|
|
'teaser',
|
50 |
|
|
'log',
|
51 |
|
|
'timestamp',
|
52 |
|
|
'format',
|
53 |
|
|
))
|
54 |
|
|
->values(array(
|
55 |
|
|
'nid' => '53',
|
56 |
|
|
'vid' => '63',
|
57 |
|
|
'uid' => '1',
|
58 |
|
|
'title' => 'First translatable page',
|
59 |
|
|
'body' => 'Body of the first translatable page.',
|
60 |
|
|
'teaser' => 'Teaser of the first translatable page.',
|
61 |
|
|
'log' => '',
|
62 |
|
|
'timestamp' => '1298363952',
|
63 |
|
|
'format' => '1',
|
64 |
|
|
))
|
65 |
|
|
->execute();
|
66 |
|
|
|
67 |
|
|
db_insert('node_comment_statistics')->fields(array(
|
68 |
|
|
'nid',
|
69 |
|
|
'last_comment_timestamp',
|
70 |
|
|
'last_comment_name',
|
71 |
|
|
'last_comment_uid',
|
72 |
|
|
'comment_count',
|
73 |
|
|
))
|
74 |
|
|
->values(array(
|
75 |
|
|
'nid' => '53',
|
76 |
|
|
'last_comment_timestamp' => '1298363952',
|
77 |
|
|
'last_comment_name' => NULL,
|
78 |
|
|
'last_comment_uid' => '1',
|
79 |
|
|
'comment_count' => '0',
|
80 |
|
|
))
|
81 |
|
|
->execute();
|
82 |
|
|
|
83 |
|
|
db_insert('node_type')->fields(array(
|
84 |
|
|
'type',
|
85 |
|
|
'name',
|
86 |
|
|
'module',
|
87 |
|
|
'description',
|
88 |
|
|
'help',
|
89 |
|
|
'has_title',
|
90 |
|
|
'title_label',
|
91 |
|
|
'has_body',
|
92 |
|
|
'body_label',
|
93 |
|
|
'min_word_count',
|
94 |
|
|
'custom',
|
95 |
|
|
'modified',
|
96 |
|
|
'locked',
|
97 |
|
|
'orig_type',
|
98 |
|
|
))
|
99 |
|
|
->values(array(
|
100 |
|
|
'type' => 'translatable_page',
|
101 |
|
|
'name' => 'Translatable page',
|
102 |
|
|
'module' => 'node',
|
103 |
|
|
'description' => 'A <em>translatable page</em> is like a normal page, but with multilanguage support.',
|
104 |
|
|
'help' => '',
|
105 |
|
|
'has_title' => '1',
|
106 |
|
|
'title_label' => 'Title',
|
107 |
|
|
'has_body' => '1',
|
108 |
|
|
'body_label' => 'Body',
|
109 |
|
|
'min_word_count' => '0',
|
110 |
|
|
'custom' => '0',
|
111 |
|
|
'modified' => '0',
|
112 |
|
|
'locked' => '1',
|
113 |
|
|
'orig_type' => '',
|
114 |
|
|
))
|
115 |
|
|
->execute();
|
116 |
|
|
|
117 |
|
|
db_insert('variable')->fields(array(
|
118 |
|
|
'name',
|
119 |
|
|
'value',
|
120 |
|
|
))
|
121 |
|
|
->values(array(
|
122 |
|
|
'name' => 'language_content_type_translatable_page',
|
123 |
|
|
'value' => 's:1:"1";',
|
124 |
|
|
))
|
125 |
|
|
->execute(); |