- <?php
- * @file
- * Database additions for Layout upgrade tests. Used in layout.test.
- *
- * This dump only contains data and schema components relevant for Layout module
- * functionality. The drupal-7.filled.database.php file is imported before
- * this dump, so the two form the database structure expected in tests
- * altogether.
- */
-
- db_update('block')
- ->fields(array(
- 'region' => 'triptych_middle',
- 'status' => '1',
- ))
- ->condition('module', 'node')
- ->condition('delta', 'syndicate')
- ->condition('theme', 'bartik')
- ->execute();
-
- db_update('block')
- ->fields(array(
- 'region' => 'triptych_last',
- 'status' => '1',
- 'visibility' => '1',
- 'pages' => "<front>\nnode*",
- ))
- ->condition('module', 'comment')
- ->condition('delta', 'recent')
- ->condition('theme', 'bartik')
- ->execute();
-
- db_update('block')
- ->fields(array(
- 'region' => 'footer_firstcolumn',
- 'status' => '1',
- ))
- ->condition('module', 'system')
- ->condition('delta', 'main-menu')
- ->condition('theme', 'bartik')
- ->execute();
-
- db_update('block')
- ->fields(array(
- 'region' => 'footer_secondcolumn',
- 'status' => '1',
- ))
- ->condition('module', 'system')
- ->condition('delta', 'management')
- ->condition('theme', 'bartik')
- ->execute();
-
- db_update('block')
- ->fields(array(
- 'region' => 'footer_thirdcolumn',
- 'status' => '1',
- ))
- ->condition('module', 'system')
- ->condition('delta', 'user-menu')
- ->condition('theme', 'bartik')
- ->execute();
-
- db_update('block')
- ->fields(array(
- 'region' => 'footer_fourthcolumn',
- 'status' => '1',
- ))
- ->condition('module', 'system')
- ->condition('delta', 'navigation')
- ->condition('theme', 'bartik')
- ->execute();
-
- db_update('block')
- ->fields(array(
- 'region' => 'sidebar_second',
- 'status' => '1',
- ))
- ->condition('module', 'node')
- ->condition('delta', 'recent')
- ->condition('theme', 'bartik')
- ->execute();
-
- db_insert('block_node_type')
- ->fields(array(
- 'module',
- 'delta',
- 'type',
- ))
- ->values(array(
- 'module' => 'node',
- 'delta' => 'recent',
- 'type' => 'post',
- ))
- ->execute();
-
- db_insert('block_role')
- ->fields(array(
- 'module',
- 'delta',
- 'rid',
- ))
- ->values(array(
- 'module' => 'system',
- 'delta' => 'user-menu',
- 'rid' => 2,
- ))
- ->execute();